postrm is in waagent 1.3.2-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
set -e
if [ "$1" = "purge" ] ; then
files="/etc/waagent.conf \
/etc/waagent.conf.old \
/etc/init.d/waagent \
/etc/logrotate.d/waagent \
/etc/sudoers.d/waagent \
/var/lib/waagent \
/var/log/waagent.log"
for file in $files; do
if [ -f $file ]; then
rm -f $file
elif [ -d $file ]; then
rm -rf $file
fi
done
update-rc.d waagent remove >/dev/null
fi
exit 0
|