peach-package-builder/conf/templates/go_sbot/DEBIAN/postrm

21 lines
598 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
2022-04-11 20:57:05 +00:00
# Automatically added by cargo-deb
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
2022-04-11 20:57:05 +00:00
fi
# End automatically added section
# Automatically added by cargo-deb
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask go-sbot.service >/dev/null || true
2022-04-11 20:57:05 +00:00
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge go-sbot.service >/dev/null || true
deb-systemd-helper unmask go-sbot.service >/dev/null || true
2022-04-11 20:57:05 +00:00
fi
fi
# End automatically added section