File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -116,29 +116,6 @@ done
116116sed -i ' /Symlinks protection/d' /etc/nginx/nginx.conf
117117sed -i ' /disable_symlinks.*/d' /etc/nginx/nginx.conf
118118
119- # Add improved symlink protection
120- nginx_version=$( rpm -q nginx| grep nginx-1| cut -f 2 -d .)
121- if [ -e " /tmp/nginx" ] && [[ " $nginx_version " -gt ' 0' ]]; then
122- for tpl in $( ls $TPL /nginx | grep -v proxy_ip.tpl) ; do
123- check_symlink=$( grep disable_symlinks $TPL /nginx/$tpl )
124- if [ -z " $check_symlink " ]; then
125- insert=' disable_symlinks if_not_owner from=%home%\/%user%;'
126- sed -i " s/include %/$insert \n\n include %/" $TPL /nginx/$tpl
127- triggered=' yes'
128- fi
129- done
130-
131- if [ " $triggered " = ' yes' ]; then
132- # Rebuild web domains
133- for user in $( ls $VESTA /data/users) ; do
134- /usr/local/vesta/bin/v-rebuild-web-domains $user no
135- done
136-
137- # Restart proxy
138- /usr/local/vesta/bin/v-restart-proxy
139- fi
140- fi
141-
142119# Update version
143120sed -i ' s/0.9.7/0.9.8/' /usr/local/vesta/conf/vesta.conf
144121
You can’t perform that action at this time.
0 commit comments