diff options
author | 2018-03-26 13:55:11 +0000 | |
---|---|---|
committer | 2018-03-26 13:55:11 +0000 | |
commit | cc7dca9a21765dca0ba336f27659a3852f6a15d9 (patch) | |
tree | 64d977bb0d28caa9eff96082041a8a53546da9ca /packages/base/src/files/install/mysql/bin/db_upgrade.sh | |
parent | c8bed1e392b935ec50aaeeb5fb82d25a9568b790 (diff) | |
parent | 669931e76de18aabb14f9ff873da4783f8c83d7a (diff) |
Merge "ONAP code change for log files consolidation"
Diffstat (limited to 'packages/base/src/files/install/mysql/bin/db_upgrade.sh')
-rw-r--r-- | packages/base/src/files/install/mysql/bin/db_upgrade.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/base/src/files/install/mysql/bin/db_upgrade.sh b/packages/base/src/files/install/mysql/bin/db_upgrade.sh index 87d5d9bd7..85a9218f5 100644 --- a/packages/base/src/files/install/mysql/bin/db_upgrade.sh +++ b/packages/base/src/files/install/mysql/bin/db_upgrade.sh @@ -124,8 +124,12 @@ function check_directory # MAIN #check_directory -LOG=$POLICY_HOME/logs/db_upgrade_$DATE.log -ERR=$POLICY_HOME/logs/db_upgrade_$DATE.err +if [ -z ${POLICY_LOGS} ]; then + POLICY_LOGS=/var/log/onap +fi +mkdir -p $POLICY_LOGS/policy/db +LOG=$POLICY_LOGS/policy/db/db_upgrade_$DATE.log +ERR=$POLICY_LOGS/policy/db/db_upgrade_$DATE.err echo "db_upgrade.sh started ..." | tee -a $LOG if [ $# -eq 3 ]; then TARGET_RELEASE="${1}" |