mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
e4b4da2567
commit
797cf4294f
@ -1,14 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# $Id$
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ! getent passwd fhem >/dev/null; then
|
if ! getent passwd fhem >/dev/null; then
|
||||||
useradd --system --home /opt/fhem --gid dialout --shell /bin/false fhem
|
useradd --system --home /opt/fhem --gid dialout --shell /bin/false fhem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R fhem:dialout /opt/fhem
|
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
|
# set up of autostart
|
||||||
# Sysvinit; upstart no longer supported
|
# Sysvinit; upstart no longer supported
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user