mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
18 lines
335 B
Bash
Executable File
18 lines
335 B
Bash
Executable File
#!/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/systemd/system/fhem.service; then
|
|
rm /etc/systemd/system/fhem.service
|
|
fi
|