2010-02-24 21:58:53 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
|
|
|
|
remove)
|
|
|
|
# remove sample file if those were previously (wrongly) installed
|
|
|
|
for file in upsset.conf hosts.conf upsstats.html upsstats-single.html ; do
|
|
|
|
if [ -f /etc/nut/${file}.sample ] ; then
|
|
|
|
rm -f /etc/nut/${file}.sample
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
|
|
|
|
purge)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
upgrade)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
failed-upgrade)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
abort-install)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
abort-upgrade)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
disappear)
|
|
|
|
# do nothing
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$0: incorrect arguments: $*" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
2012-08-11 22:08:16 +00:00
|
|
|
exit 0
|