summaryrefslogtreecommitdiffstats
path: root/debian/ansible.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:47 +0000
commitdeef9f57fec5948df575f3b93013f7760fce3d1c (patch)
treece2fe3ad388f3995e6e597771f7c5106c3ac9cab /debian/ansible.preinst
parentAdding upstream version 7.3.0+dfsg. (diff)
downloadansible-deef9f57fec5948df575f3b93013f7760fce3d1c.tar.xz
ansible-deef9f57fec5948df575f3b93013f7760fce3d1c.zip
Adding debian version 7.3.0+dfsg-1.debian/7.3.0+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/ansible.preinst')
-rw-r--r--debian/ansible.preinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/ansible.preinst b/debian/ansible.preinst
new file mode 100644
index 00000000..f292fc88
--- /dev/null
+++ b/debian/ansible.preinst
@@ -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