mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23:08 +02:00
21 lines
378 B
Bash
Executable File
21 lines
378 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if [ "$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"
|