From 3dbdbd78e013a664420cd70adb7f0a915c056c6d Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 18 Aug 2022 11:08:24 +0200 Subject: [PATCH] Update 'start.sh' --- start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index d9e1616..0ce7703 100755 --- a/start.sh +++ b/start.sh @@ -11,7 +11,10 @@ ln -sf /app/data/tmp /opt/www/tmp adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER" echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd # start antd-tunnel service +[ ! -f "/app/antd-config.ini" ] && cp /opt/www/antd-config.ini /app/antd-config.ini +[ ! -f "/app/runner.ini" ] && cp /opt/www/runner.ini /app/runner.ini + /usr/bin/antd /app/antd-config.ini & -sleep 1 +sleep 2 [ -f /app/runner.ini ] && /opt/www/bin/runner /app/runner.ini & wait \ No newline at end of file