Browse Source

Fix invalid service enabled

pull/119/head
emanuele-f 6 years ago
parent
commit
41e9e04083
  1. 1
      packages/debian/debian/postinst
  2. 9
      packages/debian/debian/prerm

1
packages/debian/debian/postinst

@ -34,7 +34,6 @@ if systemctl -q is-active edge; then
fi fi
# Restart specific services if already running # Restart specific services if already running
deb-systemd-invoke enable 'edge@*.service' 'edge-ntopng@*.service'
deb-systemd-invoke restart 'edge@*.service' 'edge-ntopng@*.service' deb-systemd-invoke restart 'edge@*.service' 'edge-ntopng@*.service'
# Enable supernode # Enable supernode

9
packages/debian/debian/prerm

@ -6,18 +6,13 @@ if [ -f /.dockerenv ]; then exit 0; fi
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
case "$1" in if [ "$1" = "remove" ]; then
upgrade)
;;
*)
deb-systemd-invoke stop edge.service 'edge@*.service' 'edge-ntopng@*.service' deb-systemd-invoke stop edge.service 'edge@*.service' 'edge-ntopng@*.service'
deb-systemd-invoke disable edge.service 'edge@*.service' 'edge-ntopng@*.service' deb-systemd-invoke disable edge.service 'edge@*.service' 'edge-ntopng@*.service'
deb-systemd-invoke stop supernode.service deb-systemd-invoke stop supernode.service
deb-systemd-invoke disable supernode.service deb-systemd-invoke disable supernode.service
systemctl daemon-reload systemctl daemon-reload
systemctl reset-failed systemctl reset-failed
;; fi
esac
exit 0 exit 0

Loading…
Cancel
Save