From 72eaec3eaa5c6496c40842b45b81fcb04a8ec50a Mon Sep 17 00:00:00 2001 From: kurczews Date: Mon, 5 Nov 2018 12:42:15 +0100 Subject: Move logback config from WAR Issue-ID: VID-40 Change-Id: I8c658e78af0e5b045e9fb36f4da07f0c5bb0f097 Signed-off-by: kurczews --- deliveries/src/main/scripts/localize_logback.sh | 5 +++-- deliveries/src/main/scripts/localize_war.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'deliveries/src/main/scripts') diff --git a/deliveries/src/main/scripts/localize_logback.sh b/deliveries/src/main/scripts/localize_logback.sh index a0f177337..90ce883cc 100755 --- a/deliveries/src/main/scripts/localize_logback.sh +++ b/deliveries/src/main/scripts/localize_logback.sh @@ -1,7 +1,8 @@ #!/bin/bash -FINAL_CONFIG_FILE=$1/classes/logback.xml -TEMPLATE_CONFIG_FILE=$1/classes/logback_template.xml +BASE_DIR=/etc/onap/vid/conf.d +FINAL_CONFIG_FILE=${BASE_DIR}/logback.xml +TEMPLATE_CONFIG_FILE=${BASE_DIR}/logback_template.xml echo "Localizing the VID logback configuration" diff --git a/deliveries/src/main/scripts/localize_war.sh b/deliveries/src/main/scripts/localize_war.sh index 99cb177ed..53a928e84 100755 --- a/deliveries/src/main/scripts/localize_war.sh +++ b/deliveries/src/main/scripts/localize_war.sh @@ -1,6 +1,6 @@ #!/bin/bash -source /tmp/vid/localize_logback.sh $1 || { +source /tmp/vid/localize_logback.sh || { echo "ERROR: Localizing logback.xml failed" exit 1 } -- cgit 1.2.3-korg