From: Chris Sharp <csharp@georgialibraries.org> Date: Tue, 12 Oct 2021 21:50:33 +0000 (-0400) Subject: Add Syndetics config to eg_vhost too. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=27edd1a20315028041f3e71ae476ef56d3611212;p=contrib%2Fpines%2Fgenasys.git Add Syndetics config to eg_vhost too. --- diff --git a/GenaSYS.sh b/GenaSYS.sh index 22ce5c8..78a2c6f 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -1899,13 +1899,16 @@ if [ -e "${CUSTOMDIR}/zips.txt" ] sed -i 's^</zips_file>-->^</zips_file>^g' $TMPOPENSRF_XML fi +### Write the Syndetics login information to both opensrf.xml and eg_vhost for alternate configs + if [ "$USE_SYNDETICS" == "y" ]|| [ "$USE_SYNDETICS" == "Y" ] then sed -i 's^::OpenLibrary</module>^::Syndetic</module>^g' $TMPOPENSRF_XML sed -i 's^OpenLibrary added content^Syndetics added content^g' $TMPOPENSRF_XML sed -i "s^MODULE_USER_ID^$SYNDETICS_USER_ID^g" $TMPOPENSRF_XML -# sed -i 's^<!-- <base_url>http://syndetics.com/index.aspx</base_url> -->^<base_url>http://syndetics.com/index.aspx</base_url>^g' $TMPOPENSRF_XML - sed -i '/<module>OpenILS::WWW::/a \\t <base_url>http://syndetics.com/index.aspx</base_url>' $TMPOPENSRF_XML + sed -i '/<module>OpenILS::WWW::/a \\t <base_url>https://syndetics.com/index.aspx</base_url>' $TMPOPENSRF_XML + echo "SYNDETICS_USER_ID=${SYNDETICS_USER_ID}" > ../setup_${SUBFOLDER}/.Syndetics.txt + chmod 600 ../setup_${SUBFOLDER}/.Syndetics.txt fi ### Start setup of munin.conf file diff --git a/templates/setup-head.sh b/templates/setup-head.sh index 039a49e..8dd2545 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -401,6 +401,15 @@ then sed -i "/SetEnv OILS_NOVELIST_PROFILE/aSetEnv OILS_NOVELIST_PASSWORD $NOVELIST_PASSWORD" /etc/apache2/eg_vhost.conf fi +### Setup Syndetics +if [ -e .Syndetics.txt ] +then + echo;echo "Configuring Evergreen for Syndetics" + sleep 2 + . .Syndetics.txt + sed -i "/# SetEnv OILS_NOVELIST_PASSWORD/a\n\t# PINES Customization: Move Syndetics info from opensrf.xml to here\n\tSetEnv OILS_SYNDETICS_URL https://secure.syndetics.com/index.aspx\n\tSetEnv OILS_SYNDETICS_ID $SYNDETICS_USER_ID" /etc/apache2/eg_vhost.conf +fi + ### Setup custom KPAC if [ -e kpac.xml ] then