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:
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user