From f24f09b2d89638d1242f89e61577d5dd7db1228b Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 26 Mar 2021 14:41:34 +0100 Subject: [PATCH] refactory app dir --- start.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 2759d34..1f26d29 100755 --- a/start.sh +++ b/start.sh @@ -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