Update setup-head.sh for TPAC, lib_ips.txt
authorAndy Witter <awitter@georgialibraries.org>
Mon, 3 Nov 2014 15:10:31 +0000 (10:10 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Mon, 3 Nov 2014 15:10:31 +0000 (10:10 -0500)
Discovered that setup-head.sh was still trying to comment out
the redirect lines for JSPAC and not the TPAC, which was causing
lib_ips.txt not to work out of the box.

This commit revises the script to properly disable the default
TPAC redirect rule in eg_vhost.conf when lib_ips.txt is in use.

templates/setup-head.sh

index bb13e3a..9b2655f 100755 (executable)
@@ -289,7 +289,7 @@ then
        ###TODO VERIFY THE BLOCK BELOW IS STILL NEEDED.  some lines are deprecated.
        sed -i 's^#OpenILS::WWW::Redirect^OpenILS::WWW::Redirect^g' /etc/apache2/eg_startup 
        sed -i 's^#use OpenILS::WWW::Redirect^use OpenILS::WWW::Redirect^g' /etc/apache2/eg_startup
-       sed -i 's+RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml+#RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml+g' /etc/apache2/eg_vhost.conf
+       sed -i 's+RedirectMatch 301 ^/$ /eg/opac/home+#RedirectMatch 301 ^/$ /eg/opac/home+g' /etc/apache2/eg_vhost.conf        
        sed -i 's+#<LocationMatch ^/$>+<LocationMatch ^/$>+g' /etc/apache2/eg_vhost.conf
        sed -i 's^#    SetHandler perl-script^    SetHandler perl-script^g' /etc/apache2/eg_vhost.conf
        sed -i 's^#    PerlHandler OpenILS::WWW::Redirect^    PerlHandler OpenILS::WWW::Redirect^g' /etc/apache2/eg_vhost.conf