diff --git a/ct/immich.sh b/ct/immich.sh index 949fde070..bae8fa691 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -253,25 +253,6 @@ EOF fi systemctl restart immich-ml immich-web msg_ok "Updated successfully!" - msg_info "Checking health of Immich-web & Immich-ml services" - sleep 5 - web=0 - until curl -fs localhost:2283/api/server/ping | grep -q "pong" || [[ $web -gt 1 ]]; do - msg_warn "Problem detected with Immich-web service, restarting..." - systemctl restart immich-web && sleep 5 - [[ $(curl -fs localhost:2283/api/server/ping | grep "pong") ]] && break - ((web++)) - done - [[ $web -lt 1 ]] && msg_ok "Immich-web service is reachable!" || msg_error "Please check '/var/log/immich/web.log' for more details" - - ml=0 - until [[ $(curl -fs localhost:3003/ping) == "pong" ]] || [[ $ml -gt 1 ]]; do - msg_warn "Problem detected with Immich-ml service, restarting..." - systemctl restart immich-ml && sleep 5 - [[ $(curl -fs localhost:3003/ping) == "pong" ]] && break - ((ml++)) - done - [[ $ml -lt 1 ]] && msg_ok "Immich-ml service is reachable!" || msg_error "Please check '/var/log/immich/ml.log' for more details" fi exit } diff --git a/install/immich-install.sh b/install/immich-install.sh index 2bbe153fa..b86058c12 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -477,26 +477,6 @@ chown -R immich:immich "$INSTALL_DIR" /var/log/immich systemctl enable -q --now immich-ml.service immich-web.service msg_ok "Modified user, created env file, scripts and services" -msg_info "Checking health of Immich-web & Immich-ml services" -sleep 5 -web=0 -until curl -fs localhost:2283/api/server/ping | grep -q "pong" || [[ $web -gt 1 ]]; do - msg_warn "Problem detected with Immich-web service, restarting..." - systemctl restart immich-web && sleep 5 - [[ $(curl -fs localhost:2283/api/server/ping | grep "pong") ]] && break - ((web++)) -done -[[ $web -lt 1 ]] && msg_ok "Immich-web service is reachable!" || msg_error "Please check '/var/log/immich/web.log' for more details" - -ml=0 -until [[ $(curl -fs localhost:3003/ping) == "pong" ]] || [[ $ml -gt 1 ]]; do - msg_warn "Problem detected with Immich-ml service, restarting..." - systemctl restart immich-ml && sleep 5 - [[ $(curl -fs localhost:3003/ping) == "pong" ]] && break - ((ml++)) -done -[[ $ml -lt 1 ]] && msg_ok "Immich-ml service is reachable!" || msg_error "Please check '/var/log/immich/ml.log' for more details" - motd_ssh customize cleanup_lxc