2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 16:09:49 +00:00
fhem-mirror/fhem/contrib/DEBIAN/postrm
betateilchen 8f537b6c94 fhem.service: do not set restart options as default
git-svn-id: https://svn.fhem.de/fhem/trunk@15704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2017-12-27 12:49:12 +00:00

23 lines
390 B
Bash

#!/bin/bash
# $Id$
set -e
user_exists=$(id -u fhem > /dev/null 2>&1; echo $?)
if [ "$user_exists" -eq "0" ]; then
echo "deleting user fhem"
userdel fhem
fi
if test -f /etc/init/fhem.conf; then
rm /etc/init/fhem.conf
fi
if test -f /etc/init.d/fhem; then
rm /etc/init.d/fhem
fi
if test -f /etc/systemd/system/fhem.service; then
rm /etc/systemd/system/fhem.service
fi