Files
docker-tachidesk/scripts/startup_script.sh
2022-06-22 11:19:16 -04:00

23 lines
1.2 KiB
Bash

#!/bin/sh
if [ ! -f /home/suwayomi/.local/share/Tachidesk/docker_touchfile ]; then
touch /home/suwayomi/.local/share/Tachidesk/docker_touchfile
curl -s --create-dirs -L https://raw.githubusercontent.com/Suwayomi/docker-tachidesk/main/server.conf -o /home/suwayomi/.local/share/Tachidesk/server.conf;
fi
echo ""
echo ""
echo " ************README***********"
echo "-> It is essential that u read readme for ghcr.io/suwayomi/tachidesk before running this container"
echo "-> Readme for ghcr.io/suwayomi/tachidesk is available at https://github.com/suwayomi/docker-tachidesk "
echo " *****************************"
echo ""
echo ""
echo "Tachidesk data location inside the container -> /home/suwayomi/.local/share/Tachidesk"
echo ""
echo "The server is running by default configuration on http://localhost:4567"
if [ "${LOGGING:-file}" != "file" ]; then
exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar";
else
echo "log file location inside the container -> /home/suwayomi/.local/share/Tachidesk/logfile.log"
exec java -jar "/home/suwayomi/startup/tachidesk_latest.jar" > /home/suwayomi/.local/share/Tachidesk/logfile.log 2>&1;
fi