#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}"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user