From 797cf4294f46ae81d157a19a4adb22dd75bf9932 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Mon, 27 Feb 2017 20:44:26 +0000 Subject: [PATCH] postinst: remove repo entry from sources after installation git-svn-id: https://svn.fhem.de/fhem/trunk@13542 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DEBIAN/postinst | 6 ++++++ 1 file changed, 6 insertions(+) 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