From c7cce216b42b489d5e131198916c8538ea111c35 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 3 May 2020 18:50:58 +0200 Subject: [PATCH] d/postinst: triggers: call updatecerts manually on reloads if pve-manager gets triggered we will normally always do a reload, that means that updatecerts call won't get triggered, as systemd doesn't executes the ExecStartPre directives in the reload case. Do it ourself Signed-off-by: Thomas Lamprecht --- debian/postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/postinst b/debian/postinst index a5f4d7ac7..dcf77d24e 100755 --- a/debian/postinst +++ b/debian/postinst @@ -18,6 +18,9 @@ case "$1" in test -f /etc/pve/local/pve-ssl.pem || exit 0; test -e /proxmox_install_mode && exit 0; + # the ExecStartPre doesn't triggers on service reload, so just in case + /usr/bin/pvecm updatecerts --silent || true + deb-systemd-invoke reload-or-try-restart pvedaemon.service deb-systemd-invoke reload-or-try-restart pvestatd.service deb-systemd-invoke reload-or-try-restart pveproxy.service