mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
contrib/DEBIAN: modified some package script
- remove support for upstart - stop running fhem process in prerm before userdel - prevent fhem package from being overwrittten by apt-get-upgrade git-svn-id: https://svn.fhem.de/fhem/trunk@6712 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
23c2da892d
commit
937b9a0c14
@ -9,6 +9,13 @@ fi
|
||||
|
||||
chown -R fhem:root /opt/fhem
|
||||
|
||||
# prevent package fhem from being
|
||||
# upgraded by apt-get upgrade
|
||||
|
||||
apt-mark hold fhem
|
||||
echo "fhem hold" | dpkg --set-selections
|
||||
|
||||
|
||||
# set up of autostart
|
||||
# Sysvinit; upstart no longer supported
|
||||
|
||||
|
@ -10,11 +10,7 @@ fi
|
||||
if test -f /etc/init/fhem.conf; then
|
||||
rm /etc/init/fhem.conf
|
||||
fi
|
||||
|
||||
if test -f /etc/init.d/fhem; then
|
||||
update-rc.d fhem remove
|
||||
rm /etc/init.d/fhem
|
||||
fi
|
||||
|
||||
if test ! -x /sbin/initctl; then
|
||||
update-rc.d -f fhem remove
|
||||
fi
|
||||
|
@ -2,10 +2,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
if pgrep fhem.pl >/dev/null; then
|
||||
if test -x /sbin/initctl; then
|
||||
initctl stop fhem
|
||||
else
|
||||
invoke-rc.d fhem stop
|
||||
fi
|
||||
fi
|
||||
# stop fhem if running
|
||||
invoke-rc.d fhem stop
|
||||
|
||||
# remove fhem autostart
|
||||
update-rc.d fhem remove
|
||||
|
Loading…
Reference in New Issue
Block a user