12 lines
256 B
Plaintext
12 lines
256 B
Plaintext
|
#!/bin/sh -
|
||
|
|
||
|
getent group lighttpd || groupadd -r lighttpd
|
||
|
|
||
|
if [ -z "`getent passwd named`" ]; then
|
||
|
useradd -g lighttpd -d /var/www/lighttpd -s /bin/false lighttpd
|
||
|
passwd -l lighttpd
|
||
|
fi
|
||
|
|
||
|
chown root:lighttpd /var/log/lighttpd
|
||
|
chmod 0775 /var/log/lighttpd
|