Persist Museum configuration for manual edits

This commit is contained in:
Your Name
2025-09-29 22:36:37 -06:00
parent b38bd6a249
commit 7a5fac90ab
3 changed files with 15 additions and 5 deletions

View File

@@ -207,8 +207,9 @@ MUSEUM_CONFIG_DIR="/app/data/ente/server/configurations"
MUSEUM_CONFIG="$MUSEUM_CONFIG_DIR/local.yaml"
mkdir -p "$MUSEUM_CONFIG_DIR"
log "INFO" "Rendering Museum server configuration"
cat > "$MUSEUM_CONFIG" << EOF
if [ ! -f "$MUSEUM_CONFIG" ]; then
log "INFO" "Rendering Museum server configuration"
cat > "$MUSEUM_CONFIG" << EOF
# Museum server configuration
# Server settings
@@ -330,8 +331,11 @@ jobs:
cron:
skip: true
EOF
chmod 600 "$MUSEUM_CONFIG"
log "INFO" "Wrote Museum configuration to ${MUSEUM_CONFIG}"
chmod 600 "$MUSEUM_CONFIG"
log "INFO" "Wrote Museum configuration to ${MUSEUM_CONFIG}"
else
log "INFO" "Museum configuration already present at ${MUSEUM_CONFIG}; preserving existing file"
fi
# ===============================================
# Database check