Skip to content
Browse files

Load a custom log4j.properties on development servers

  • Loading branch information...
1 parent 3f0eab7 commit 4d3e279beba318a33a46abc6bed7788bf2498a5f @ColinHebert ColinHebert committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 postbuild.sh
View
3 postbuild.sh
@@ -7,6 +7,7 @@ if [ -d $CATALINA_HOME ] ; then
# Grab config from svn
svn export https://svn.oucs.ox.ac.uk/projects/vle/deployment/debian/sakai/config/trunk/sakai.properties target/tomcat/sakai/sakai.properties
+ svn export https://svn.oucs.ox.ac.uk/projects/vle/sakai/config/trunk/log4j.properties target/tomcat/sakai/log4j.properties
svn export https://svn.oucs.ox.ac.uk/projects/vle/sakai/config/trunk/local.properties target/tomcat/sakai/local.properties
svn export --force https://svn.oucs.ox.ac.uk/projects/vle/deployment/solr-config target/tomcat/solr
sed -i "s/DB_NAME/${DB_NAME}/" target/tomcat/sakai/local.properties
@@ -14,7 +15,7 @@ if [ -d $CATALINA_HOME ] ; then
sed -i "s/TURNITIN_AID/${TURNITIN_AID:-69293}/" target/tomcat/sakai/local.properties
sed -i "s/TURNITIN_SECRET/${TURNITIN_SECRET:-OUCSsKey}/" target/tomcat/sakai/local.properties
sed -i "s|TURNITIN_API_URL|${TURNITIN_API_URL:-'https://sandbox.turnitin.com/api.asp'}|" target/tomcat/sakai/local.properties
- sed -i "s|SENTRY_DSN|${SENTRY_DSN}|" target/tomcat/sakai/local.properties
+ sed -i "s|SENTRY_DSN|${SENTRY_DSN}|" target/tomcat/sakai/log4j.properties
# Show the build version that we're running.
echo version.service=$BUILD_TAG >> target/tomcat/sakai/local.properties

0 comments on commit 4d3e279

Please sign in to comment.
Something went wrong with that request. Please try again.