From 191301f953a78ea33ba852dccadfb3f9529d3897 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 30 Jan 2026 11:14:06 +0100 Subject: [PATCH] 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. --- ct/immich.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/immich.sh b/ct/immich.sh index 79a0d92c0..abfe85385 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -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