mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
deleting hack for nginx user / not relevant for apache
This commit is contained in:
parent
f1623c9bd9
commit
84354fa1c1
1 changed files with 1 additions and 3 deletions
|
@ -65,13 +65,11 @@ echo "$user:$password" | /usr/sbin/chpasswd
|
|||
mkdir $HOMEDIR/$user/conf
|
||||
|
||||
if [ ! -z "$WEB_SYSTEM" ]; then
|
||||
nginxuser=$(ps -eo user,comm|grep nginx|uniq|grep -v "root"|awk '{ print $1}')
|
||||
mkdir $HOMEDIR/$user/conf/web $HOMEDIR/$user/web $HOMEDIR/$user/tmp
|
||||
chmod 751 $HOMEDIR/$user/conf/web
|
||||
chmod 710 $HOMEDIR/$user/web
|
||||
chmod 700 $HOMEDIR/$user/tmp
|
||||
chown $user:$nginxuser $HOMEDIR/$user/web
|
||||
chown $user:$user $HOMEDIR/$user/tmp
|
||||
chown $user:$user $HOMEDIR/$user/web $HOMEDIR/$user/tmp
|
||||
fi
|
||||
|
||||
if [ ! -z "$MAIL_SYSTEM" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue