mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-29 12:04:45 +00:00
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:
+1
-1
@@ -250,7 +250,7 @@ EOF
|
|||||||
ln -s "$GEO_DIR" "$APP_DIR"
|
ln -s "$GEO_DIR" "$APP_DIR"
|
||||||
|
|
||||||
chown -R immich:immich "$INSTALL_DIR"
|
chown -R immich:immich "$INSTALL_DIR"
|
||||||
if [[ "$MAINT_MODE" == 1 ]]; then
|
if [[ "${MAINT_MODE:-0}" == 1 ]]; then
|
||||||
msg_info "Disabling Maintenance Mode"
|
msg_info "Disabling Maintenance Mode"
|
||||||
cd /opt/immich/app/bin
|
cd /opt/immich/app/bin
|
||||||
$STD bash ./immich-admin disable-maintenance-mode
|
$STD bash ./immich-admin disable-maintenance-mode
|
||||||
|
|||||||
Reference in New Issue
Block a user