[pmg-devel] [RFC pmg-api 4/5] postinst: always use pmgconfig sync --restart
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Jul 29 14:45:11 CEST 2019
since that already checks whether we need to reload the services,
'pmgconfig sync' alone only updates the config files..
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
I'd like someone with more in-depth PMG knowledge to take a look at
this..
debian/postinst | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index f566876..5e4db3a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -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
--
2.20.1
More information about the pmg-devel
mailing list