fix: remove unused health check function from localagi.sh

This commit is contained in:
John Doe
2026-03-04 21:08:20 -05:00
parent 50402cec02
commit 75578ab173

View File

@@ -21,20 +21,6 @@ variables
color
catch_errors
function health_check() {
header_info
if [[ ! -d /opt/localagi ]]; then
msg_error "LocalAGI not found at /opt/localagi"
return 1
fi
if ! systemctl is-active --quiet localagi; then
msg_error "LocalAGI service not running"
return 1
fi
msg_ok "Health check passed: LocalAGI installed and service running"
return 0
}
function update_script() {
header_info
check_container_storage
@@ -92,8 +78,6 @@ function update_script() {
systemctl restart localagi
msg_ok "Started LocalAGI"
health_check
msg_ok "Updated Successfully"
exit
}