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.
###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