diff options
author | 2018-03-28 18:10:31 +0000 | |
---|---|---|
committer | 2018-03-28 18:10:31 +0000 | |
commit | 95a5bc9816c0bdf56b4ea6699004eb29940ddc6a (patch) | |
tree | ae77669442e877457c4bc3ff9a49b426bcd39742 /packages/base/src/files/install/mysql/bin/cleanup_policy.sh | |
parent | cb802d83533ff13886f08b6b9ecb8827bb86d90c (diff) | |
parent | 5cd57949604803a32bd3a19c183eadf11f0ab900 (diff) |
Merge "ONAP code change for log files consolidation"
Diffstat (limited to 'packages/base/src/files/install/mysql/bin/cleanup_policy.sh')
-rw-r--r-- | packages/base/src/files/install/mysql/bin/cleanup_policy.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/base/src/files/install/mysql/bin/cleanup_policy.sh b/packages/base/src/files/install/mysql/bin/cleanup_policy.sh index 969d089c0..1841d3c57 100644 --- a/packages/base/src/files/install/mysql/bin/cleanup_policy.sh +++ b/packages/base/src/files/install/mysql/bin/cleanup_policy.sh @@ -71,12 +71,8 @@ function cleanup_deleted_policy } # MAIN -if [ -z ${POLICY_LOGS} ]; then - POLICY_LOGS=/var/log/onap -fi -mkdir -p $POLICY_LOGS/policy/db -LOG=$POLICY_LOGS/policy/db/cleanup_policy_$DATE.log -ERR=$POLICY_LOGS/policy/db/cleanup_policy_$DATE.err +LOG=$POLICY_HOME/logs/cleanup_policy_$DATE.log +ERR=$POLICY_HOME/logs/cleanup_policy_$DATE.err echo "cleanup_policy.sh started ... `date`" | tee -a $LOG if [ $# -eq 3 ]; then DB_USER="${1}" |