forked from Votion-Development/Dashactyl-Egg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
entrypoint.sh
33 lines (27 loc) · 863 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh
cd /home/container || exit 1;
if [[ -f "/home/container/index.js" ]]; then
node index.js
else
echo "index.js not found. Proceed to install Dashactyl? (Y/N)";
read proceed;
case "$proceed" in
"Y")
echo "Installing Dashactyl...";
git clone https://github.com/FyreHub/Fyreactyl.git /home/container/fyreactyl
mv /home/container/fyreactyl/** /home/container
rm -rf /home/container/fyreactyl
mv /home/container/settings-example.yml /home/container/settings.yml
yarn install
echo "Fyreactyl is now installed. Please open settings.yml and follow the guide to fill out the details: https://docs.votion.dev/docs/Dashactyl/configuration";
rm /home/container/entrypoint.sh
exit 0;
;;
"N")
exit 0;
;;
*)
exit 1;
;;
esac
fi