From 27edd1a20315028041f3e71ae476ef56d3611212 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 12 Oct 2021 17:50:33 -0400 Subject: [PATCH] Add Syndetics config to eg_vhost too. --- GenaSYS.sh | 7 +++++-- templates/setup-head.sh | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) 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^-->^^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^::Syndetic^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^^http://syndetics.com/index.aspx^g' $TMPOPENSRF_XML - sed -i '/OpenILS::WWW::/a \\t http://syndetics.com/index.aspx' $TMPOPENSRF_XML + sed -i '/OpenILS::WWW::/a \\t https://syndetics.com/index.aspx' $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 -- 2.11.0