fix(docker_init): seed /app from /apptoo when started rootless

This commit is contained in:
Erwan Leboucher committed 2026-05-15 00:09:43 +02:00
1 parent 9243d0c9d0
commit fd45ed58f7
1 file changed
+5
+5
View File
@@ -269,6 +269,11 @@ if [ -f $tmp_root_env ]; then
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"
if [ ! -d /app ]; then error_exit "/app directory does not exist"; fi
it=/app/.testfile; touch $it || error_exit "Failed to verify /app directory"