correct Syndetics creation
authorChris Sharp <csharp@georgialibraries.org>
Wed, 13 Oct 2021 19:43:18 +0000 (15:43 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 13 Oct 2021 19:43:18 +0000 (15:43 -0400)
GenaSYS.sh

index 78a2c6f..b1d6314 100755 (executable)
@@ -1907,8 +1907,6 @@ if [ "$USE_SYNDETICS" == "y" ]|| [ "$USE_SYNDETICS" == "Y" ]
        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 '/<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
@@ -3293,6 +3291,11 @@ do
                                echo "NOVELIST_PASSWORD=${NOVELIST_PASSWORD}" >> ../setup_${SUBFOLDER}/.Novelist.txt
                                chmod 600 ../setup_${SUBFOLDER}/.Novelist.txt
                        fi
+            if [[ "$USE_SYNDETICS" == "y" || "$USE_SYNDETICS" == "Y" ]]
+            then
+                echo "SYNDETICS_USER_ID=${SYNDETICS_USER_ID}" > ../setup_${SUBFOLDER}/.Syndetics.txt
+                chmod 600 ../setup_${SUBFOLDER}/.Syndetics.txt
+            fi
                fi
                
 #TODO check drone pkging.