cleaned up entrypoint-xaseco.sh

:
This commit is contained in:
Hendrik Boll 2019-05-12 19:21:16 +02:00
parent 1c36cef3fb
commit 370ccf6089
1 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
set -e set -e
# Sleep for 30 seconds to wait for trackmania server # Sleep for 30 seconds to wait for trackmania server
sleep 30 sleep 10
if [[ -e /etc/xaseco/env ]] if [[ -e /etc/xaseco/env ]]
@ -58,4 +58,5 @@ sed -i -e "s/--\$DB_HOST--/$DB_HOST/" \
-e "s/--\$DB_NAME--/$DB_NAME/" \ -e "s/--\$DB_NAME--/$DB_NAME/" \
/opt/xaseco/localdatabase.xml /opt/xaseco/localdatabase.xml
exec "php" "opt/xaseco/aseco.php" "TMNF" "</dev/null" ">aseco.log" "2>&1" exec "/usr/bin/php" "/opt/xaseco/aseco.php" "TMNF" "</dev/null" ">aseco.log" "2>&1"
exec "cat" "/opt/xaseco/aseco.log"