From c0558cd0c3f01f4d8cf89f3d24f431dcd148a301 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 28 May 2014 14:28:39 -0400 Subject: [PATCH] Added -W flag --- nagios-website-add.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nagios-website-add.sh b/nagios-website-add.sh index a64ac8c..c3cc334 100755 --- a/nagios-website-add.sh +++ b/nagios-website-add.sh @@ -115,6 +115,12 @@ set-http-params $website $host write-config-header write-config-body +# www CNAME, special request :D +if [ $www -eq 1 ]; then + set-https-params www.$website $host + write-config-body +fi + # Additional CNAMEs if requested if [ $cname -eq 1 ]; then for name in $cnames; do -- 2.25.1