From fd45ed58f70bccd1050b488a825b363395c3b48c Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Fri, 15 May 2026 00:09:43 +0200 Subject: [PATCH] fix(docker_init): seed /app from /apptoo when started rootless --- docker_init.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker_init.bash b/docker_init.bash index 1b9004d0..00d521c9 100644 --- a/docker_init.bash +++ b/docker_init.bash @@ -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"