Added -W flag
authorLisa Marie Maginnis <lisam@fsf.org>
Wed, 28 May 2014 18:28:39 +0000 (14:28 -0400)
committerLisa Marie Maginnis <lisam@fsf.org>
Wed, 28 May 2014 18:28:39 +0000 (14:28 -0400)
nagios-website-add.sh

index a64ac8c004d33dff42bbfbbd9ed27c48eb1e51a9..c3cc3343d6d26d10bf43e77f2a808654230247a4 100755 (executable)
@@ -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