Skip to content
Snippets Groups Projects

V2021 11

Closed Steffen Köhler requested to merge v2021-11 into master
Viewing commit 4124bb12
Show latest version
1 file
+ 9
7
Preferences
Compare changes
@@ -12,7 +12,8 @@ okapi_token=""
permission_id=""
permissions=""
module_descriptor=""
tenantParameters=""
loadSample=false
loadReference=false
parse_cmdline_parameters() {
! getopt --test >/dev/null
@@ -22,7 +23,7 @@ parse_cmdline_parameters() {
fi
OPTIONS=
LONGOPTS=install-backend-module:,install-frontend-module:,name:,id:,description:,debug,loadSampleWithReference,loadReference
LONGOPTS=install-backend-module:,install-frontend-module:,name:,id:,description:,debug,loadSample,loadReference
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
@@ -60,12 +61,13 @@ parse_cmdline_parameters() {
debug=1
shift
;;
--loadSampleWithReference)
tenantParameters="tenantParameters=loadSample=true,loadReference=true"
--loadSample)
loadReference=true
loadSample=true
shift
;;
--loadReference)
tenantParameters="tenantParameters=loadReference=true"
loadReference=true
shift
;;
--)
@@ -332,7 +334,7 @@ EOF
-w "|%{http_code}" \
-H 'Content-type: application/json' \
--connect-timeout ${CURL_CONNECT_TIMEOUT} \
"${OKAPI_URL}/_/proxy/tenants/${tenant_id}/install?${tenantParameters}" \
"${OKAPI_URL}/_/proxy/tenants/${tenant_id}/install?tenantParameters=loadSample=${loadSample},loadReference=${loadReference}" \
-d @- 2>&1`
case "${result##*|}" in
@@ -649,4 +651,4 @@ main() {
return $?
}
main "$@"
\ No newline at end of file
main "$@"