Skip to content

Commit fd3a3e2

Browse files
committed
removed disable_symlinks protection
1 parent ca85e44 commit fd3a3e2

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

upd/convert-templates.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,6 @@ done
116116
sed -i '/Symlinks protection/d' /etc/nginx/nginx.conf
117117
sed -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
143120
sed -i 's/0.9.7/0.9.8/' /usr/local/vesta/conf/vesta.conf
144121

0 commit comments

Comments
 (0)