mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-16 17:03:09 +02:00
db4fd843f4
* Leave exposing ports to the compose/run setup * Add pterodactyl egg and adjust the start script for working in ro overlay2 setups * Update egg-discord-tickets-bot.json
25 lines
515 B
Bash
Executable File
25 lines
515 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if [ "$PTERODACTYL" = "true" ]; then
|
|
rm -rf /home/container/app
|
|
cp -R /app /home/container/
|
|
base_dir="/home/container/app"
|
|
elif [ "$DOCKER" = "true" ]; then
|
|
base_dir="/app"
|
|
else
|
|
source="${BASH_SOURCE}"
|
|
base_dir=$(dirname $(dirname "$source"))
|
|
fi
|
|
|
|
echo "Checking environment..."
|
|
script=scripts/preinstall
|
|
node "$base_dir/$script"
|
|
|
|
echo "Preparing the database..."
|
|
script=scripts/postinstall
|
|
node "$base_dir/$script"
|
|
|
|
echo "Starting..."
|
|
script=src/
|
|
node "$base_dir/$script"
|