2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

contrib/DEBIAN: revert last changes

git-svn-id: https://svn.fhem.de/fhem/trunk@15691 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-12-25 18:47:43 +00:00
parent 4995d552cf
commit 50cb51236c
3 changed files with 15 additions and 9 deletions

View File

@ -15,11 +15,15 @@ chown -R fhem:dialout /opt/fhem
# remove repository entry after first installation
sed -i /debian.fhem.de/d /etc/apt/sources.list
# set up of autostart (Sysvinit upstart no longer supported)
ln -s /opt/fhem/contrib/init-scripts/fhem.service /etc/systemd/system/.
systemctl enable fhem
# set up of autostart
# Sysvinit; upstart no longer supported
# and start the fhem service
systemctl start fhem
#mkdir -p /etc/init.d
cp /opt/fhem/contrib/init-scripts/fhem.3 /etc/init.d/fhem
chmod ugo+x /etc/init.d/fhem
update-rc.d fhem defaults
if test -f /etc/init.d/fhem; then
/etc/init.d/fhem start noaptmark
fi
exit 0

View File

@ -12,6 +12,6 @@ if test -f /etc/init/fhem.conf; then
rm /etc/init/fhem.conf
fi
if test -f /etc/systemd/system/fhem.service; then
rm /etc/systemd/system/fhem.service
if test -f /etc/init.d/fhem; then
rm /etc/init.d/fhem
fi

View File

@ -6,7 +6,9 @@ set -e
apt-mark unhold fhem
# stop fhem if running
systemctl stop fhem
if test -f /etc/init.d/fhem; then
/etc/init.d/fhem stop noaptmark
fi
# remove fhem autostart
systemctl disble fhem
update-rc.d -f fhem remove