fix: remove unused health check function from localagi.sh
This commit is contained in:
@@ -21,20 +21,6 @@ variables
|
|||||||
color
|
color
|
||||||
catch_errors
|
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() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
@@ -92,8 +78,6 @@ function update_script() {
|
|||||||
systemctl restart localagi
|
systemctl restart localagi
|
||||||
msg_ok "Started LocalAGI"
|
msg_ok "Started LocalAGI"
|
||||||
|
|
||||||
health_check
|
|
||||||
|
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user