Remove obsolete files and old upgrade paths for users coming from version prior to wheezy
This commit is contained in:
parent
9aba586fa8
commit
3115b529b2
15 changed files with 39 additions and 632 deletions
40
debian/nut-server.prerm
vendored
40
debian/nut-server.prerm
vendored
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# the DEBHELPER token is purposely not used
|
||||
# because we don't want the daemon to be
|
||||
# stopped during an upgrade
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
handle_start_failure () {
|
||||
# The MODE defined in /etc/nut/nut.conf shouldn't affect the exit code when the
|
||||
|
|
@ -11,39 +8,6 @@ handle_start_failure () {
|
|||
return 1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
||||
remove)
|
||||
# nut-usb specifics
|
||||
[ -f /etc/hotplug/usb/libhid.usermap ] && rm -f /etc/hotplug/usb/libhid.usermap
|
||||
[ -f /etc/hotplug/usb/libhidups ] && rm -f /etc/hotplug/usb/libhidups
|
||||
|
||||
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut
|
||||
# do stop the daemon on remove
|
||||
invoke-rc.d nut stop && sleep 1
|
||||
[ -d /run/nut ] && rm -rf /run/nut/
|
||||
;;
|
||||
|
||||
upgrade)
|
||||
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut
|
||||
# do not stop the daemon on upgrade
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
# do nothing
|
||||
;;
|
||||
|
||||
deconfigure)
|
||||
# do nothing
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: incorrect arguments: $*" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue