1 2 3 4 5 6 7 8 9 10 11 12
pre_remove() { if systemctl -q is-enabled $_pkgname.service; then systemctl disable $_pkgname.service fi } post_remove() { echo echo "Remove $_pkgname user and this HOME /var/lib/$_pkgname manually, if not needed anymore." echo }