fix: generate share links before acme reloadcmd registration

Avoid script exit when acme reloadcmd fails transiently on systemd dbus.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 09:06:47 +08:00
parent ad9787942f
commit e8631a0e10
2 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ log "注册证书续期 reload 命令 ..."
/root/.acme.sh/acme.sh --install-cert -d "$DOMAIN" \
--key-file /etc/sing-box/certs/privkey.pem \
--fullchain-file /etc/sing-box/certs/fullchain.pem \
--reloadcmd "systemctl restart sing-box"
--reloadcmd "systemctl restart sing-box" \
|| log "acme reloadcmd 注册失败,可忽略(服务已配置)"
systemctl restart sing-box