mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-27 04:35: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
|
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
|
# set up of autostart
|
||||||
# Sysvinit; upstart no longer supported
|
# Sysvinit; upstart no longer supported
|
||||||
|
|
||||||
|
@ -10,11 +10,7 @@ fi
|
|||||||
if test -f /etc/init/fhem.conf; then
|
if test -f /etc/init/fhem.conf; then
|
||||||
rm /etc/init/fhem.conf
|
rm /etc/init/fhem.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f /etc/init.d/fhem; then
|
if test -f /etc/init.d/fhem; then
|
||||||
update-rc.d fhem remove
|
|
||||||
rm /etc/init.d/fhem
|
rm /etc/init.d/fhem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ! -x /sbin/initctl; then
|
|
||||||
update-rc.d -f fhem remove
|
|
||||||
fi
|
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if pgrep fhem.pl >/dev/null; then
|
# stop fhem if running
|
||||||
if test -x /sbin/initctl; then
|
invoke-rc.d fhem stop
|
||||||
initctl stop fhem
|
|
||||||
else
|
# remove fhem autostart
|
||||||
invoke-rc.d fhem stop
|
update-rc.d fhem remove
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user