From 3594eae109d0eb9e089d652bf974eca5ab949200 Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 26 Mar 2021 14:03:33 +0100 Subject: [PATCH] support mount loop file --- start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.sh b/start.sh index 219eaf4..2759d34 100755 --- a/start.sh +++ b/start.sh @@ -1,4 +1,9 @@ #! /bin/sh +mkdir -p /app/home +if [ -f "/app/file.fs" ]; then + mount /app/file.fs /app/home + ls /app +fi [ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/home "/home/$ANTOS_USER" adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER" echo -e "$ANTOS_PASSWORD\n$ANTOS_PASSWORD" | passwd "$ANTOS_USER"