Copy maintenance page to correct directory on Apache 2.4.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 23 Aug 2017 12:54:47 +0000 (08:54 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 23 Aug 2017 12:54:47 +0000 (08:54 -0400)
GenaSYS.sh

index acec20b..7162996 100755 (executable)
@@ -1646,7 +1646,7 @@ for LVS in $MACHINES_LVS_ONLY
        
        
        ### Configure the maintenance page on LVS servers
-       mkdir -p "$OUTDIR/$LVS/var/www"
+       mkdir -p "$OUTDIR/$LVS/var/www/html"
        if $(ls $CUSTOMDIR/maint_page |grep -q "index.html\|index.php")
         then
                echo;echo "Installing custom maintenance page on ${LVS}..."
@@ -1654,9 +1654,9 @@ for LVS in $MACHINES_LVS_ONLY
         fi
        if [ "$CUSTOM_MAINT_PAGE_INDEX" = "y" ]
        then
-               cp -f $CUSTOMDIR/maint_page/* "$OUTDIR/$LVS/var/www/"
+               cp -f $CUSTOMDIR/maint_page/* "$OUTDIR/$LVS/var/www/html"
        else
-               cp -f $TEMPLATEDIR/lvs/maint_page/* "$OUTDIR/$LVS/var/www"
+               cp -f $TEMPLATEDIR/lvs/maint_page/* "$OUTDIR/$LVS/var/www/html"
        fi