summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..b18aa8e
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -e
+case "$1" in
+ configure)
+ waagent --setup --force
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ if [ -f /etc/init/waagent ]; then
+ rm /etc/init/waagent
+ fi
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+