summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst38
1 files changed, 0 insertions, 38 deletions
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644
index aeb33d8..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -e
-
-if [ -f /usr/sbin/waagent.save ]; then
- dpkg-divert --package walinuxagent-data-saver --rename --remove /usr/sbin/waagent
-fi
-
-case "$1" in
- configure)
-
- if [ -e /etc/waagent.conf ]; then
- mv /etc/waagent.conf /etc/waagent.conf.save
- fi
-
- waagent --setup --force
-
- if [ -e /etc/waagent.conf.save ]; then
- mv /etc/waagent.conf /etc/waagent.conf.dpkg-dist
- mv /etc/waagent.conf.save /etc/waagent.conf
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- if [ -f /etc/init.d/waagent ]; then
- rm /etc/init.d/waagent
- fi
- ;;
-
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
-