fix: add informational messages for systemd service creation and management in localagi-install.sh
This commit is contained in:
@@ -49,6 +49,7 @@ cd /opt/localagi
|
|||||||
$STD go build -o /usr/local/bin/localagi
|
$STD go build -o /usr/local/bin/localagi
|
||||||
msg_ok "Built LocalAGI from source successfully"
|
msg_ok "Built LocalAGI from source successfully"
|
||||||
|
|
||||||
|
msg_info "Creating LocalAGI systemd service"
|
||||||
cat <<'EOF' >/etc/systemd/system/localagi.service
|
cat <<'EOF' >/etc/systemd/system/localagi.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LocalAGI
|
Description=LocalAGI
|
||||||
@@ -66,8 +67,11 @@ Restart=on-failure
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
msg_ok "Created LocalAGI systemd service"
|
||||||
|
|
||||||
|
msg_info "Enabling and Starting LocalAGI service"
|
||||||
systemctl enable -q --now localagi
|
systemctl enable -q --now localagi
|
||||||
|
msg_ok "Enabled and Started LocalAGI service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Reference in New Issue
Block a user