2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 22:56:34 +00:00
rudolfkoenig 23d1fbdb09 debian/ubuntu package creation
git-svn-id: https://svn.fhem.de/fhem/trunk@661 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2010-08-02 12:47:55 +00:00

14 lines
263 B
Bash

#!/bin/sh
# Don't know how to check presence of fhem in passwd with -e
#set -e
grep -q fhem /etc/passwd
e=$?
if test ! $e = 0; then
useradd --system --home /var/log/fhem --shell /bin/false fhem
fi
chown -R fhem /var/log/fhem /etc/fhem.cfg
initctl start fhem