summaryrefslogtreecommitdiffstats
path: root/packages/base/src/files/bin/policy.sh
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-08-15 15:13:30 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-15 15:13:30 +0000
commit443205e307a5c84b0a4aa198bb66a6088e700adc (patch)
tree9afc3e91a43f2fa51d899276da91beb53d9f552c /packages/base/src/files/bin/policy.sh
parentc80b11cf2316d690ed4ad50eacc17bd4a83695a8 (diff)
parent483b87c8bee3c6911aa537b9c823a2c8d24bec80 (diff)
Merge "Support of DB-enabled features"
Diffstat (limited to 'packages/base/src/files/bin/policy.sh')
-rw-r--r--packages/base/src/files/bin/policy.sh11
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
}