We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcbd1a commit 9392655Copy full SHA for 9392655
upd/convert-templates.sh
@@ -117,7 +117,8 @@ sed -i '/Symlinks protection/d' /etc/nginx/nginx.conf
117
sed -i '/disable_symlinks.*/d' /etc/nginx/nginx.conf
118
119
# Add improved symlink protection
120
-if [ -e "$TPL/nginx" ]; then
+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
0 commit comments