]> git.proxmox.com Git - pmg-api.git/blobdiff - debian/postinst
postinst: always use pmgconfig sync --restart
[pmg-api.git] / debian / postinst
index f5668760aa090ba155eaca8fa46b63c6fe1e190f..5e4db3a84315826a719ad6b3b0cff31728745cf1 100644 (file)
@@ -24,14 +24,12 @@ case "$1" in
 
            pmgconfig init
            pmgdb init
+           pmgconfig sync --restart
 
-           if [ -n "$2" ]; then
-               pmgconfig sync
-           else
+           if [ -z "$2" ]; then
                if systemctl --quiet is-active pmgpolicy.service ; then
                    deb-systemd-invoke reload-or-try-restart postgresql.service >/dev/null || true
                fi
-               pmgconfig sync --restart
                deb-systemd-invoke restart postfix.service >/dev/null || true
            fi