diff options
Diffstat (limited to 'debian/taler-merchant.postinst')
-rw-r--r-- | debian/taler-merchant.postinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/taler-merchant.postinst b/debian/taler-merchant.postinst index 2f54b038..58c075d9 100644 --- a/debian/taler-merchant.postinst +++ b/debian/taler-merchant.postinst @@ -2,6 +2,22 @@ set -e +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true +fi +if [ "$1" = "remove" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper mask 'taler-merchant-httpd.service' >/dev/null || true + fi +fi + +if [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper purge 'taler-merchant-httpd.service' >/dev/null || true + deb-systemd-helper unmask 'taler-merchant-httpd.service' >/dev/null || true + fi +fi + TALER_HOME="/var/lib/taler" _USERNAME=taler-merchant-httpd _GROUPNAME=www-data |