summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm')
-rw-r--r--t/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm b/t/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm
new file mode 100644
index 0000000..6e5813a
--- /dev/null
+++ b/t/recipes/checks/maintainer-scripts/systemctl/systemd-general/build-spec/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" ] && which systemctl >/dev/null 2>&1; then
+ systemctl || true
+fi
+
+#DEBHELPER#
+