diff --git a/packages/debian/debian/postinst b/packages/debian/debian/postinst index 43e2223..3c36b7a 100755 --- a/packages/debian/debian/postinst +++ b/packages/debian/debian/postinst @@ -34,7 +34,6 @@ if systemctl -q is-active edge; then fi # Restart specific services if already running -deb-systemd-invoke enable 'edge@*.service' 'edge-ntopng@*.service' deb-systemd-invoke restart 'edge@*.service' 'edge-ntopng@*.service' # Enable supernode diff --git a/packages/debian/debian/prerm b/packages/debian/debian/prerm index ac4e9ee..9e4e53d 100755 --- a/packages/debian/debian/prerm +++ b/packages/debian/debian/prerm @@ -6,18 +6,13 @@ if [ -f /.dockerenv ]; then exit 0; fi . /usr/share/debconf/confmodule -case "$1" in - upgrade) - ;; - - *) +if [ "$1" = "remove" ]; then 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 stop supernode.service deb-systemd-invoke disable supernode.service systemctl daemon-reload systemctl reset-failed - ;; -esac +fi exit 0