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"