diff --git a/Dockerfile b/Dockerfile index 6167ec0..764c1f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ RUN chmod +x /etc/services.d/backupbot/run # Copy web frontend COPY web /app RUN chmod +x /app/cgi-bin/backupbot.cgi + # Expose web frontend port EXPOSE 8080 diff --git a/services/backupbot/run b/services/backupbot/run index 6d82a03..1bb50ae 100644 --- a/services/backupbot/run +++ b/services/backupbot/run @@ -12,6 +12,11 @@ else source /config/backupbot.conf set +a fi +# Initialize default web interface if missing +if [ ! -d /config/web ]; then + echo "[INFO] Populating /config/web from defaults..." + cp -r /defaults/web /config/ +fi # Start Python HTTP server for web config in background cd /app