mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
14 lines
263 B
Plaintext
14 lines
263 B
Plaintext
![]() |
#!/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
|