2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 13:29:26 +00:00
fhem-mirror/fhem/contrib/DEBIAN/postrm

18 lines
303 B
Plaintext
Raw Normal View History

#!/bin/bash
#set -x
set -e # required by lintian
set +e # Don't know how to check presence of fhem in passwd with -e
if grep -q fhem /etc/passwd; then
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