#420: No error treatment to /opt/cf-update.sh

This commit is contained in:
Janio Sarmento
2022-02-14 21:06:40 -03:00
parent e401b7dac6
commit e92437913e

View File

@@ -62,7 +62,9 @@ if [ -d /etc/nginx/conf.d ]; then
echo "set_real_ip_from ${ip};" >> "${cfConf}" echo "set_real_ip_from ${ip};" >> "${cfConf}"
done done
service nginx reload echo 'real_ip_header CF-Connecting-IP;' >> "${cfConf}"
nginx -t && service nginx reload
else else
echo "There are some errors in the IP blocks" >&2 echo "There are some errors in the IP blocks" >&2
exit 1 exit 1