Update 'start.sh'
This commit is contained in:
parent
1687db8be0
commit
6770ba2b5a
8
start.sh
8
start.sh
@ -7,9 +7,11 @@ mkdir -p /app/data/home
|
|||||||
mkdir -p /app/data/database
|
mkdir -p /app/data/database
|
||||||
mkdir -p /app/data/tmp
|
mkdir -p /app/data/tmp
|
||||||
ln -sf /app/data/tmp /opt/www/tmp
|
ln -sf /app/data/tmp /opt/www/tmp
|
||||||
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER"
|
if [ ! -z "$ANTOS_USER" ]; then
|
||||||
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER"
|
||||||
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
||||||
|
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd
|
||||||
|
fi
|
||||||
# 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/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
|
[ ! -f "/app/runner.ini" ] && cp /opt/www/runner.ini /app/runner.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user