refactory app dir
This commit is contained in:
parent
3594eae109
commit
f24f09b2d8
10
start.sh
10
start.sh
@ -1,10 +1,12 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
mkdir -p /app/home
|
mkdir -p /app/data
|
||||||
if [ -f "/app/file.fs" ]; then
|
if [ -f "/app/file.fs" ]; then
|
||||||
mount /app/file.fs /app/home
|
mount /app/file.fs /app/data
|
||||||
ls /app
|
|
||||||
fi
|
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"
|
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
|
||||||
echo -e "$ANTOS_PASSWORD\n$ANTOS_PASSWORD" | passwd "$ANTOS_USER"
|
echo -e "$ANTOS_PASSWORD\n$ANTOS_PASSWORD" | passwd "$ANTOS_USER"
|
||||||
# start antd-tunnel service
|
# start antd-tunnel service
|
||||||
|
Loading…
Reference in New Issue
Block a user