diff options
author | Chou, Joseph (JC2555) <jc2555@att.com> | 2018-04-02 14:11:34 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2018-04-03 14:24:50 +0000 |
commit | 80cbbc8710292ae08437daa6e3390cc0190e3139 (patch) | |
tree | a23f07b06617c33c96ee41568b9422c252997549 /packages/base/src/files/install/mysql/bin/db_backup_data.sh | |
parent | def1c29d8a8c4372e006b1388a456bca92d57500 (diff) |
ONAP log files consolidation
Check in changes for pap,pdp,console,brmsgw,paplp and pdplp
Change-Id: I23525a44e0f269d04d9870c3eed18b6b8daacb2c
Issue-ID: POLICY-562
Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
Diffstat (limited to 'packages/base/src/files/install/mysql/bin/db_backup_data.sh')
-rw-r--r-- | packages/base/src/files/install/mysql/bin/db_backup_data.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/base/src/files/install/mysql/bin/db_backup_data.sh b/packages/base/src/files/install/mysql/bin/db_backup_data.sh index ee0b44732..53710af36 100644 --- a/packages/base/src/files/install/mysql/bin/db_backup_data.sh +++ b/packages/base/src/files/install/mysql/bin/db_backup_data.sh @@ -63,8 +63,12 @@ function backup_database # MAIN -LOG=$POLICY_HOME/logs/db_backup_data_$DATE.log -ERR=$POLICY_HOME/logs/db_backup_data_$DATE.err +if [ -z ${POLICY_LOGS} ]; then + POLICY_LOGS=/var/log/onap +fi +mkdir -p $POLICY_LOGS/onap/policy/db +LOG=$POLICY_LOGS/policy/db/db_backup_data_$DATE.log +ERR=$POLICY_LOGS/policy/db/db_backup_data_$DATE.err echo "db_backup_data.sh started ... `date`" | tee -a $LOG if [ $# -eq 3 ]; then DB_USER="${1}" @@ -80,5 +84,4 @@ if [ $# -eq 3 ]; then else echo "Usage : db_backup_data.sh db_user_id db_user_password database" echo "Example: db_backup_data.sh policy_user password xacml" -fi - +fi
\ No newline at end of file |