fix(docker_init): seed /app from /apptoo when started rootless
This commit is contained in:
parent
9243d0c9d0
commit
fd45ed58f7
1 changed files with 5 additions and 0 deletions
|
|
@ -269,6 +269,11 @@ if [ -f $tmp_root_env ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##
|
##
|
||||||
|
if [ ! -f /app/server.py ] && [ -d /apptoo ]; then
|
||||||
|
echo ""; echo "-- Seeding /app from /apptoo (rootless startup)"
|
||||||
|
cp -a /apptoo/. /app/ || error_exit "Failed to seed /app from /apptoo (is /app writable by the runtime user?)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""; echo "-- Verifying /app is writable by the hermeswebui runtime user"
|
echo ""; echo "-- Verifying /app is writable by the hermeswebui runtime user"
|
||||||
if [ ! -d /app ]; then error_exit "/app directory does not exist"; fi
|
if [ ! -d /app ]; then error_exit "/app directory does not exist"; fi
|
||||||
it=/app/.testfile; touch $it || error_exit "Failed to verify /app directory"
|
it=/app/.testfile; touch $it || error_exit "Failed to verify /app directory"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue