aboutsummaryrefslogtreecommitdiffstats
path: root/config/pe
diff options
context:
space:
mode:
Diffstat (limited to 'config/pe')
-rwxr-xr-x[-rw-r--r--]config/pe/push-policies.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh
index 77f94c0f..d50706de 100644..100755
--- a/config/pe/push-policies.sh
+++ b/config/pe/push-policies.sh
@@ -12,6 +12,12 @@ sleep 2
curl -v --silent -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -F "file=@cl-amsterdam-template.drl" -F "importParametersJson={\"serviceName\":\"ClosedLoopControlName\",\"serviceType\":\"BRMSPARAM\"}" 'http://pdp:8081/pdp/api/policyEngineImport'
+echo "PRELOAD_POLICIES is $PRELOAD_POLICIES"
+
+if [ "$PRELOAD_POLICIES" == "false" ]; then
+ exit 0
+fi
+
#########################################Create BRMS Param policies##########################################
echo "Create BRMSParam Operational Policies"