refactory app dir

This commit is contained in:
lxsang 2021-03-26 14:41:34 +01:00
parent 3594eae109
commit f24f09b2d8

View File

@ -1,10 +1,12 @@
#! /bin/sh
mkdir -p /app/home
mkdir -p /app/data
if [ -f "/app/file.fs" ]; then
mount /app/file.fs /app/home
ls /app
mount /app/file.fs /app/data
fi
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/home "/home/$ANTOS_USER"
mkdir -p /app/data/home
mkdir -p /app/data/database
mkdir -p /app/data/tmp
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER"
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
echo -e "$ANTOS_PASSWORD\n$ANTOS_PASSWORD" | passwd "$ANTOS_USER"
# start antd-tunnel service