antosaio/start.sh

9 lines
367 B
Bash
Raw Normal View History

2021-03-24 20:27:43 +01:00
#! /bin/sh
2021-03-24 22:04:42 +01:00
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/home "/home/$ANTOS_USER"
2021-03-24 20:27:43 +01:00
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
echo -e "$ANTOS_PASSWORD\n$ANTOS_PASSWORD" | passwd "$ANTOS_USER"
# start antd-tunnel service
2021-03-24 22:12:50 +01:00
/usr/bin/antd /app/antd-config.ini &
sleep 1
2021-03-24 20:27:43 +01:00
[ -f /app/runner.ini ] && /opt/www/bin/runner /app/runner.ini &
2021-03-24 22:12:50 +01:00
wait