immich: Quickfix MAINT_MODE unset variable handling in immich.sh

Use default value for MAINT_MODE to prevent errors when the variable is unset. This ensures the maintenance mode check works reliably.
This commit is contained in:
CanbiZ (MickLesk)
2026-01-30 11:14:06 +01:00
parent f58a97b9dd
commit 191301f953

View File

@@ -250,7 +250,7 @@ EOF
ln -s "$GEO_DIR" "$APP_DIR"
chown -R immich:immich "$INSTALL_DIR"
if [[ "$MAINT_MODE" == 1 ]]; then
if [[ "${MAINT_MODE:-0}" == 1 ]]; then
msg_info "Disabling Maintenance Mode"
cd /opt/immich/app/bin
$STD bash ./immich-admin disable-maintenance-mode