Persist Museum configuration for manual edits
This commit is contained in:
12
start.sh
12
start.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user