github.com/ethersphere/bee/v2@v2.2.0/packaging/deb/postrm (about) 1 #!/bin/sh -e 2 3 if [ -d /run/systemd/system ] ; then 4 systemctl --system daemon-reload >/dev/null || true 5 fi 6 if [ "$1" = "remove" ]; then 7 if [ -x "/usr/bin/deb-systemd-helper" ]; then 8 deb-systemd-helper mask bee.service >/dev/null 9 fi 10 fi 11 if [ "$1" = "purge" ]; then 12 if [ -x "/usr/bin/deb-systemd-helper" ]; then 13 deb-systemd-helper purge bee.service >/dev/null 14 deb-systemd-helper unmask bee.service >/dev/null 15 fi 16 userdel -r bee >/dev/null 2>&1 || true 17 fi 18 19 20 if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then 21 . /usr/share/debconf/confmodule 22 db_purge 23 fi