From 16b9bdb751e3de53ae412f30c1fc2338891bac20 Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Thu, 4 Apr 2019 14:06:38 -0700 Subject: [PATCH] Ensures that external content path file is included in export. --- install_scripts/fedora.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install_scripts/fedora.sh b/install_scripts/fedora.sh index 27ec881..250cbd7 100644 --- a/install_scripts/fedora.sh +++ b/install_scripts/fedora.sh @@ -42,7 +42,11 @@ if ! grep -q "fcrepo.modeshape.configuration" /etc/default/tomcat7 ; then echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.modeshape.configuration=${MODESHAPE_CONFIG}\"" >> /etc/default/tomcat7; fi -echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.external.content.allowed=$SHARED_DIR/install_scripts/external-content-allowed-paths.txt\"" >> /etc/default/tomcat7; +if [ ! -f "$HOME_DIR/external-content-allowed-paths.txt" ]; then + cp "$SHARED_DIR/install_scripts/external-content-allowed-paths.txt" $HOME_DIR +fi + +echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.external.content.allowed=${HOME_DIR}/external-content-allowed-paths.txt\"" >> /etc/default/tomcat7; echo "CATALINA_OPTS=\"\${CATALINA_OPTS} -Dfcrepo.properties.management=relaxed\"" >> /etc/default/tomcat7; if [ ! -f "$HOME_DIR/fcrepo-config.xml" ]; then