diff options
author | 2018-03-22 11:22:35 -0400 | |
---|---|---|
committer | 2018-03-23 18:05:27 -0400 | |
commit | 669931e76de18aabb14f9ff873da4783f8c83d7a (patch) | |
tree | d289226c55b0e7adfe9f56ea6dc6f9e32120dbca /packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh | |
parent | cc7d8f696dd7717493dfc87e41884c7dd9923b83 (diff) |
ONAP code change for log files consolidation
Code change for log files consolidation of PAP, PDP, BRMSGW, Console and db
script
Issue-ID: POLICY-562
Change-Id: I416ba7748b841bb2b1a31682e2b1631e279549e8
Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
Diffstat (limited to 'packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh')
-rw-r--r-- | packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh b/packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh index a10ac2173..c4316816e 100644 --- a/packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh +++ b/packages/base/src/files/install/mysql/bin/db_upgrade_remote.sh @@ -146,8 +146,12 @@ function check_directory # MAIN #check_directory -LOG=$POLICY_HOME/logs/db_upgrade_remote_$DATE.log -ERR=$POLICY_HOME/logs/db_upgrade_remote_$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_remote_$DATE.log +ERR=$POLICY_LOGS/policy/db/db_upgrade_remote_$DATE.err echo "db_upgrade_remote.sh started ..." | tee -a $LOG if [ $# -eq 3 ]; then DB_UPGRADE_USER="${1}" |