chore(uninstall): also remove nexusgate-agent-go test unit; docs(README): Go agent memory/install notes

This commit is contained in:
aaaamoooo
2026-10-20 06:56:17 +00:00
parent d29b4f7ef1
commit 9c3789a1a4
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -12,10 +12,11 @@ fi
if command -v systemctl >/dev/null && [[ -d /run/systemd/system ]]; then
systemctl disable --now nexusgate-agent.service 2>/dev/null || true
systemctl disable --now nexusgate-agent-go.service 2>/dev/null || true
systemctl disable --now nexusgate-sing-box.service 2>/dev/null || true
systemctl disable --now nexusgate-cert-renew.timer 2>/dev/null || true
systemctl disable --now nexusgate-agent-logrotate.timer 2>/dev/null || true
rm -f -- /etc/systemd/system/nexusgate-agent.service /etc/systemd/system/nexusgate-sing-box.service /etc/systemd/system/nexusgate-cert-renew.service /etc/systemd/system/nexusgate-cert-renew.timer /etc/systemd/system/nexusgate-agent-logrotate.service /etc/systemd/system/nexusgate-agent-logrotate.timer
rm -f -- /etc/systemd/system/nexusgate-agent.service /etc/systemd/system/nexusgate-agent-go.service /etc/systemd/system/nexusgate-sing-box.service /etc/systemd/system/nexusgate-cert-renew.service /etc/systemd/system/nexusgate-cert-renew.timer /etc/systemd/system/nexusgate-agent-logrotate.service /etc/systemd/system/nexusgate-agent-logrotate.timer
systemctl daemon-reload
fi
if command -v rc-service >/dev/null; then
@@ -31,6 +32,6 @@ rm -rf -- /opt/nexusgate-agent /etc/nexusgate /var/log/nexusgate
rm -f -- /etc/logrotate.d/nexusgate-agent
rm -f -- /etc/letsencrypt/renewal-hooks/deploy/nexusgate-reload.sh
rm -f -- /usr/local/sbin/ng-agent /usr/local/sbin/ng-agent-update /usr/local/sbin/ng-agent-uninstall /usr/local/sbin/ng-agent-doctor /usr/local/sbin/ng-agent-cert /usr/local/sbin/ng-agent-singbox /usr/local/sbin/ng-agent-logrotate-setup /usr/local/bin/nexusgate-sing-box /usr/local/bin/nexusgate-sing-box-stats
printf 'NexusGate Agent 与其资源已删除。系统共用的 Node.js 和其他服务未删除。\n'
printf 'NexusGate Agent 与其资源已删除。系统共用的运行时(如 Node.js)和其他服务未删除。\n'
printf 'Certbot 管理的证书仍保留;若曾使用 CF DNS 验证,其令牌已删除,保留的续签任务需另行配置或在确认没有其他服务使用后用 certbot delete 清理。\n'
printf '请在控制台删除/遗忘此设备,以撤销其 Agent 密钥和登记。\n'