Skip to content
Snippets Groups Projects

Registertenant with load sample

Merged Steffen Köhler requested to merge registertenantWithLoadSample into master
Compare and
2 files
+ 78
70
Preferences
Compare changes
Files
2
@@ -12,6 +12,7 @@ okapi_token=""
permission_id=""
permissions=""
module_descriptor=""
tenantParameters=""
parse_cmdline_parameters() {
! getopt --test >/dev/null
@@ -21,7 +22,7 @@ parse_cmdline_parameters() {
fi
OPTIONS=
LONGOPTS=install-backend-module:,install-frontend-module:,name:,id:,description:,debug
LONGOPTS=install-backend-module:,install-frontend-module:,name:,id:,description:,debug,loadSampleWithReference
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
@@ -59,6 +60,10 @@ parse_cmdline_parameters() {
debug=1
shift
;;
--loadSampleWithReference)
tenantParameters="tenantParameters=loadSample=true,loadReference=true"
shift
;;
--)
shift
break
@@ -323,7 +328,7 @@ EOF
-w "|%{http_code}" \
-H 'Content-type: application/json' \
--connect-timeout ${CURL_CONNECT_TIMEOUT} \
"${OKAPI_URL}/_/proxy/tenants/${tenant_id}/install" \
"${OKAPI_URL}/_/proxy/tenants/${tenant_id}/install?${tenantParameters}" \
-d @- 2>&1`
case "${result##*|}" in