post_install() { pkgname=pingormail # Fixing membership chown http: /var/log/$pkgname chown -R http: /etc/$pkgname # Reload systemctl systemctl daemon-reload echo "Adding pingormail in systemctl if you want always use it:" echo " systemctl enable pingormail" echo " systemctl start pingormail" true } post_upgrade() { # Reload systemctl systemctl daemon-reload true } pre_remove() { pkgname=pingormail # Remove symlink in systemd systemctl disable "$pkgname" # Stop server systemctl stop "$pkgname" # Reload systemctl systemctl daemon-reload true }