nginx-koskur
This commit is contained in:
parent
0c8242e3af
commit
fa4c7534dc
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
id www 2>/dev/null
|
id www 2>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "www kullanicisi zaten tanimli"
|
echo "www kullanicisi zaten tanimli"
|
||||||
|
@ -5,3 +7,12 @@ else
|
||||||
echo "www kullanicisi olusturuldu"
|
echo "www kullanicisi olusturuldu"
|
||||||
useradd -M -s /bin/false -c "www user" www
|
useradd -M -s /bin/false -c "www user" www
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "`getent group nginx`" ]; then
|
||||||
|
/sbin/groupadd --system nginx
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "`getent passwd nginx`" ]; then
|
||||||
|
/sbin/useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx
|
||||||
|
/bin/passwd -l nginx
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue