2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00
fhem-mirror/fhem/contrib/DEBIAN/postrm
betateilchen 13ae285ff5 contrib/DEBIAN: fixed package scripts
git-svn-id: https://svn.fhem.de/fhem/trunk@6738 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-10-10 15:52:47 +00:00

17 lines
295 B
Bash
Executable File

#!/bin/bash
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