diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-08-15 15:13:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-15 15:13:30 +0000 |
commit | 443205e307a5c84b0a4aa198bb66a6088e700adc (patch) | |
tree | 9afc3e91a43f2fa51d899276da91beb53d9f552c /packages | |
parent | c80b11cf2316d690ed4ad50eacc17bd4a83695a8 (diff) | |
parent | 483b87c8bee3c6911aa537b9c823a2c8d24bec80 (diff) |
Merge "Support of DB-enabled features"
Diffstat (limited to 'packages')
-rw-r--r-- | packages/base/src/files/bin/policy.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/base/src/files/bin/policy.sh b/packages/base/src/files/bin/policy.sh index 17ad2818..d5fabdec 100644 --- a/packages/base/src/files/bin/policy.sh +++ b/packages/base/src/files/bin/policy.sh @@ -66,10 +66,21 @@ function policy_status() { set -x fi + echo policy_op "status" NUM_CRONS=$(crontab -l 2> /dev/null | wc -l) echo " ${NUM_CRONS} cron jobs installed." + + echo + echo "[features]" + features status + + local databases=$(ls -d "${POLICY_HOME}"/etc/db/migration/*/ 2> /dev/null) + if [[ -n ${databases} ]]; then + echo "[migration]" + db-migrator -s ALL -o ok + fi } |