support mount loop file
This commit is contained in:
parent
33982c8109
commit
3594eae109
5
start.sh
5
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"
|
||||
|
Loading…
Reference in New Issue
Block a user