Merge pull request #422 from janiosarmento/issue420
#420: No error treatment to /opt/cf-update.sh
This commit is contained in:
@@ -62,7 +62,9 @@ if [ -d /etc/nginx/conf.d ]; then
|
||||
echo "set_real_ip_from ${ip};" >> "${cfConf}"
|
||||
done
|
||||
|
||||
service nginx reload
|
||||
echo 'real_ip_header CF-Connecting-IP;' >> "${cfConf}"
|
||||
|
||||
nginx -t && service nginx reload
|
||||
else
|
||||
echo "There are some errors in the IP blocks" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user