DiscordTickets/scripts/start.sh
Daleth Darko db4fd843f4
feat(ptreodactyl): new egg (#515)
* 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
2024-01-14 21:05:53 +00:00

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"