From 524e6925ea330e62349145560c4be775a1d771f5 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Mon, 3 Nov 2014 10:10:31 -0500 Subject: [PATCH] Update setup-head.sh for TPAC, lib_ips.txt 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/setup-head.sh b/templates/setup-head.sh index bb13e3a..9b2655f 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -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+#++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 -- 2.11.0