mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-09 13:54:58 +00:00
fix: remove unused health check function from localagi.sh
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user