diff options
Diffstat (limited to 'debian/sync-httpd.postinst')
-rw-r--r-- | debian/sync-httpd.postinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/sync-httpd.postinst b/debian/sync-httpd.postinst index 60393ad..9eaddab 100644 --- a/debian/sync-httpd.postinst +++ b/debian/sync-httpd.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 'sync-httpd.service' >/dev/null || true + fi +fi + +if [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper purge 'sync-httpd.service' >/dev/null || true + deb-systemd-helper unmask 'sync-httpd.service' >/dev/null || true + fi +fi + SYNC_HOME="/var/lib/sync/" _USERNAME=sync-httpd _GROUPNAME=www-data |