2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 10:09:12 +00:00

postinst: remove repo entry from sources after installation

git-svn-id: https://svn.fhem.de/fhem/trunk@13542 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-02-27 20:44:26 +00:00
parent e4b4da2567
commit 797cf4294f

View File

@ -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