fix icinga-vhost Apache2 sites-available bug.
authorAndy Witter <awitter@georgialibraries.org>
Wed, 6 Nov 2013 21:04:09 +0000 (16:04 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Wed, 6 Nov 2013 21:04:09 +0000 (16:04 -0500)
GenaSYS.sh

index f7c1e27..7957405 100755 (executable)
@@ -2331,7 +2331,7 @@ for MONITOR in $MACHINES_MONITOR
 do
        mkdir -p "$OUTDIR/$MONITOR/etc/icinga/objects"
        mkdir -p "$OUTDIR/$MONITOR/etc/apache2/sites-available"
-       cp -f "$TEMPLATEDIR/monitor/icinga-vhost.conf" "/etc/apache2/sites-available"
+       cp -f "$TEMPLATEDIR/monitor/icinga-vhost.conf" "$OUTDIR/$MONITOR/etc/apache2/sites-available"
        cp -f "$TMPFOLDER/hosts.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects"
        cp -f "$TMPFOLDER/hostgroups.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects"
        cp -f "$TEMPLATEDIR/monitor/services.cfg" "$OUTDIR/$MONITOR/etc/icinga/objects"