summaryrefslogtreecommitdiff
path: root/debian/cloud-init.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cloud-init.postrm')
-rw-r--r--debian/cloud-init.postrm17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/cloud-init.postrm b/debian/cloud-init.postrm
new file mode 100644
index 00000000..81b66812
--- /dev/null
+++ b/debian/cloud-init.postrm
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ purge)
+ rm -f /etc/cloud/cloud.cfg.d/90_dpkg.cfg
+ rm -f /etc/apt/apt.conf.d/90cloud-init-pipelining
+ ;;
+ remove)
+ dpkg-divert --package cloud-init --remove --rename --divert \
+ /etc/init/ureadahead.conf.disabled /etc/init/ureadahead.conf
+ rm -f /etc/cloud/cloud.cfg.d/90cloud-init-pipelining
+ ;;
+esac
+
+#DEBHELPER#