mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 22:56:34 +00:00
14 lines
263 B
Bash
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
|