summaryrefslogtreecommitdiffstats
path: root/debian/ansible.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/ansible.postinst')
-rw-r--r--debian/ansible.postinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/ansible.postinst b/debian/ansible.postinst
new file mode 100644
index 00000000..f292fc88
--- /dev/null
+++ b/debian/ansible.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/ansible/ansible.cfg 2.10.4~ ansible -- "$@"
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/ansible/hosts 2.10.4~ ansible -- "$@"
+
+if [ -d /etc/ansible ]; then
+ rmdir --ignore-fail-on-non-empty /etc/ansible 2> /dev/null
+fi
+
+exit 0