diff --git a/public/app.js b/public/app.js
index 7a53319..e34363b 100644
--- a/public/app.js
+++ b/public/app.js
@@ -531,7 +531,7 @@ document.addEventListener('click', async (event) => {
toast('分配已移除'); const node = state.nodes.find((item) => item.id === itemId); await load('chains'); nodeClientsModal(state.nodes.find((item) => item.id === node.id));
} else if (action === 'enroll-server') {
const result = await api(`/api/servers/${itemId}/enrollment-token`, { method:'POST', body:'{}' });
- const command = `curl -fsSL https://raw.githubusercontent.com/a2899882/NexusGate/main/scripts/agent-install.sh | bash -s -- --server ${location.origin} --token ${result.token}`;
+ const command = `curl -fsSL https://raw.githubusercontent.com/imamoxilin/NexusGate/main/scripts/agent-install.sh | bash -s -- --server ${location.origin} --token ${result.token}`;
modal('ONE-TIME ENROLLMENT', 'Agent 注册 / 重装命令', `
令牌 30 分钟内有效且只能使用一次。重装会保留本机资源文件,并在 Agent 重启后自动与控制面对账。
${esc(command)}
`);
} else if (action === 'copy-uri') { await copyText(button.dataset.value); toast('已复制到剪贴板'); }
else if (action === 'qr-uri') {
@@ -542,7 +542,7 @@ document.addEventListener('click', async (event) => {
}
else if (action === 'agent-uninstall') {
const command = 'ng-agent uninstall';
- const fallback = 'curl -fsSL https://raw.githubusercontent.com/a2899882/NexusGate/main/scripts/agent-uninstall.sh | bash';
+ const fallback = 'curl -fsSL https://raw.githubusercontent.com/imamoxilin/NexusGate/main/scripts/agent-uninstall.sh | bash';
modal('AGENT MAINTENANCE', '在目标服务器 SSH 卸载 Agent', `先停用并删除关联节点,让在线 Agent 完成资源清理。卸载会停止 NexusGate 专属服务并移除密钥与节点配置。然后在控制台删除设备登记;离线且有待清理项时使用“遗忘离线设备”。遗忘不会远程卸载机器。
${esc(command)}
旧版 Agent 没有 ng-agent 命令时,使用下列兼容命令:${esc(fallback)}
`);
}
else if (action === 'retry-cleanup') { const result = await api(`/api/servers/${itemId}/cleanup`, { method:'POST', body:'{}' }); toast(result.queued ? `已重新排队 ${result.queued} 个清理任务` : '清理任务已在队列中,请等待设备上线'); await load(); }