Fix bug with trying to sed the dir instead of the file.
authorAndy Witter <awitter@georgialibraries.org>
Wed, 30 Oct 2013 20:48:44 +0000 (16:48 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Wed, 30 Oct 2013 20:48:44 +0000 (16:48 -0400)
GenaSYS.sh

index f255572..ad913cd 100755 (executable)
@@ -25,8 +25,8 @@
     PURPOSE_="Generate config files needed for Evergreen-ILS Cluster"
    SYNOPSIS_="$NAME_"
    REQUIRES_="standard GNU commands, apt, dpkg"
-    VERSION_="1.17"
-       DATE_="2010-09-23; last update: 2013-10-29"
+    VERSION_="1.18"
+       DATE_="2010-09-23; last update: 2013-10-30"
      AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
         URL_="http://evergreen-ils.org"
    CATEGORY_="devel"
@@ -2396,10 +2396,10 @@ done
 for MONITOR in ${MACHINES_MONITOR}
 do
        mkdir -p "$OUTDIR/$MONITOR/etc/munin"
-       mkdir -p "$OUTDIR/etc/apache2/sites-available"
+       mkdir -p "$OUTDIR/$MONITOR/etc/apache2/sites-available"
        cp -f "$TMPMUNINCONF" "$OUTDIR/$MONITOR/etc/munin"
        cp -f "$TEMPLATEDIR/monitor/munin-vhost.conf" "$OUTDIR/$MONITOR/etc/apache2/sites-available"
-       sed -i "s^CLUSTER_DOMAIN_NAME^${CLUSTERDOMAINNAME}" "$OUTDIR/$MONITOR/etc/apache2/sites-available"
+       sed -i "s^CLUSTER_DOMAIN_NAME^${CLUSTERDOMAINNAME}^g" "$OUTDIR/$MONITOR/etc/apache2/sites-available/munin-vhost.conf"
 done