DiscordTickets/scripts/start.sh

17 lines
312 B
Bash
Raw Normal View History

2024-01-11 02:08:57 +02:00
#!/usr/bin/env bash
source="${BASH_SOURCE}"
base_dir=$(dirname $(dirname "$source"))
echo "Checking environment..."
2024-01-11 02:08:57 +02:00
script=scripts/preinstall
node "$base_dir/$script"
echo "Preparing the database..."
2024-01-11 02:08:57 +02:00
script=scripts/postinstall
node "$base_dir/$script"
echo "Starting..."
2024-01-11 02:08:57 +02:00
script=src/
node "$base_dir/$script"