diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst index 20aaccd..aeb33d8 100644 --- a/debian/postinst +++ b/debian/postinst @@ -7,7 +7,17 @@ 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) |