Update 'start.sh'
This commit is contained in:
parent
27c76ad28b
commit
3dbdbd78e0
5
start.sh
5
start.sh
@ -11,7 +11,10 @@ ln -sf /app/data/tmp /opt/www/tmp
|
|||||||
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
||||||
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
||||||
# start antd-tunnel service
|
# 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 &
|
/usr/bin/antd /app/antd-config.ini &
|
||||||
sleep 1
|
sleep 2
|
||||||
[ -f /app/runner.ini ] && /opt/www/bin/runner /app/runner.ini &
|
[ -f /app/runner.ini ] && /opt/www/bin/runner /app/runner.ini &
|
||||||
wait
|
wait
|
Loading…
Reference in New Issue
Block a user