From e92437913e60f254876fd7c62d486ffb41f42993 Mon Sep 17 00:00:00 2001 From: Janio Sarmento Date: Mon, 14 Feb 2022 21:06:40 -0300 Subject: [PATCH] #420: No error treatment to /opt/cf-update.sh --- wo/cli/templates/cf-update.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wo/cli/templates/cf-update.mustache b/wo/cli/templates/cf-update.mustache index cf2a3d7..ce6269c 100644 --- a/wo/cli/templates/cf-update.mustache +++ b/wo/cli/templates/cf-update.mustache @@ -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