diff --git a/fhem/contrib/DEBIAN/postinst b/fhem/contrib/DEBIAN/postinst index 3be18f8b6..523ed27b3 100644 --- a/fhem/contrib/DEBIAN/postinst +++ b/fhem/contrib/DEBIAN/postinst @@ -1,14 +1,20 @@ #!/bin/bash +# $Id$ set -e #set -x + + if ! getent passwd fhem >/dev/null; then useradd --system --home /opt/fhem --gid dialout --shell /bin/false fhem fi 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