Skip to content

Commit

Permalink
Remove color and improve shutdown time
Browse files Browse the repository at this point in the history
  • Loading branch information
Tresmos committed Apr 24, 2024
1 parent e8fde77 commit d385800
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/bin/sh
BCYAN='\033[1;36m'
BGREEN='\033[1;32m'
NC='\033[0m'

EXAMPLE_CONFIG=https://github.com/Tresmos/jmusicbot-docker/raw/main/config.txt
CONFIG_FILE=/opt/jmusicbot/data/config.txt

set -e

echo "JMusicBot Version: ${BCYAN}$BOT_VERSION${NC}"
echo "JMusicBot Version: $BOT_VERSION"

if [ ! -f "$CONFIG_FILE" ]; then
echo "${BCYAN}config.txt${NC} not found. Downloading example config file..."
echo "config.txt not found. Downloading example config file..."
curl -L -sS -o ${CONFIG_FILE} ${EXAMPLE_CONFIG}
echo "${BGREEN}Example config file downloaded. Please edit the config file and restart the container. "
echo "Example config file downloaded. Please edit the config file and restart the container. "
exit
fi

cd /opt/jmusicbot/data/
java -jar -Dconfig=/opt/jmusicbot/data/config.txt -Dnogui=true /opt/jmusicbot/JMusicBot.jar
exec java -jar -Dconfig=/opt/jmusicbot/data/config.txt -Dnogui=true /opt/jmusicbot/JMusicBot.jar

0 comments on commit d385800

Please sign in to comment.