mirror of
https://git.proxmox.com/git/mirror_smartmontools-debian
synced 2025-07-27 08:37:22 +00:00
Fixed postinst script: Version is only valid when configuring.
(Closes: #766146)
This commit is contained in:
parent
9da6b45fe2
commit
b5de401b0c
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -8,6 +8,8 @@ smartmontools (6.4+svn4109-2) UNRELEASED; urgency=medium
|
||||
[ Tobias Frost ]
|
||||
* Import patch from Helmut (see above)
|
||||
* Remove '/var/lib/smartmontools' on purge (Closes: #766145)
|
||||
* Fixed postinst script: Version is only valid when configuring.
|
||||
(Closes: #766146)
|
||||
|
||||
-- Helmut Grohne <helmut@subdivi.de> Thu, 30 Jul 2015 01:18:49 +0200
|
||||
|
||||
|
20
debian/smartmontools.postinst
vendored
20
debian/smartmontools.postinst
vendored
@ -2,16 +2,20 @@
|
||||
set -e
|
||||
|
||||
# Remove shutdown and reboot links; this init script does not need them.
|
||||
if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then
|
||||
if [ -e /etc/rc0.d/K20smartmontools ]; then
|
||||
rm -f /etc/rc0.d/K20smartmontools
|
||||
case "$1" in
|
||||
configure)
|
||||
if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then
|
||||
if [ -e /etc/rc0.d/K20smartmontools ]; then
|
||||
rm -f /etc/rc0.d/K20smartmontools
|
||||
fi
|
||||
if [ -e /etc/rc6.d/K20smartmontools ]; then
|
||||
rm -f /etc/rc6.d/K20smartmontools
|
||||
fi
|
||||
fi
|
||||
if [ -e /etc/rc6.d/K20smartmontools ]; then
|
||||
rm -f /etc/rc6.d/K20smartmontools
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
dpkg-maintscript-helper rm_conffile \
|
||||
/etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@"
|
||||
/etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@"
|
||||
|
||||
#DEBHELPER#
|
||||
|
Loading…
Reference in New Issue
Block a user