summaryrefslogtreecommitdiffstats
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postrm-init-tmpfiles-purge7
-rw-r--r--autoscripts/postrm-init-tmpfiles-remove7
2 files changed, 14 insertions, 0 deletions
diff --git a/autoscripts/postrm-init-tmpfiles-purge b/autoscripts/postrm-init-tmpfiles-purge
new file mode 100644
index 0000000..31419f5
--- /dev/null
+++ b/autoscripts/postrm-init-tmpfiles-purge
@@ -0,0 +1,7 @@
+if [ -x "$(command -v systemd-tmpfiles)" ]; then
+ if [ "$1" = "purge" ] && systemd-tmpfiles --help | grep -q "\-\-purge"; then
+ systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --purge - >/dev/null <<TMPFILES_EOF || true
+#TMPFILES_PURGE#
+TMPFILES_EOF
+ fi
+fi
diff --git a/autoscripts/postrm-init-tmpfiles-remove b/autoscripts/postrm-init-tmpfiles-remove
new file mode 100644
index 0000000..3132744
--- /dev/null
+++ b/autoscripts/postrm-init-tmpfiles-remove
@@ -0,0 +1,7 @@
+if [ -x "$(command -v systemd-tmpfiles)" ]; then
+ if [ "$1" = "remove" ]; then
+ systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --remove - >/dev/null <<TMPFILES_EOF || true
+#TMPFILES_REMOVE#
+TMPFILES_EOF
+ fi
+fi