fix: update LocalAGI service management in update_script function
This commit is contained in:
@@ -52,8 +52,9 @@ function update_script() {
|
|||||||
$STD go build -o /usr/local/bin/localagi || {
|
$STD go build -o /usr/local/bin/localagi || {
|
||||||
msg_ok "Updated LocalAGI successfully"
|
msg_ok "Updated LocalAGI successfully"
|
||||||
msg_info "Starting LocalAGI service"
|
msg_info "Starting LocalAGI service"
|
||||||
systemctl enable -q --now localagi
|
systemctl daemon-reload
|
||||||
mesg_ok "Started LocalAGI service"
|
systemctl start localagi
|
||||||
|
msg_ok "Started LocalAGI service"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user