forked from Sayrix/Ticket-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_run.sh
More file actions
19 lines (17 loc) · 684 Bytes
/
docker_run.sh
File metadata and controls
19 lines (17 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Setup the config files
if [ ! -f "./config/config.json" ]; then
if [ -f "./temp_config/config.jsonc" ]; then
# Config already setup by the user
echo "Pre-build config detected, moving to config folder...";
mv ./temp_config/config.jsonc ./config/config.jsonc
else
# Config not setup by the user
echo "Config not detected, creating config...";
echo "Make sure to edit the config file in /opt/ticket-bot/config/config.jsonc before starting the bot again.";
mv ./temp_config/config.example.jsonc ./config/config.jsonc
exit 1;
fi
fi
npx prisma db push --schema=./prisma/docker.prisma
npm run start