diff --git a/ansible/artifacts/sunbird/login/resources/js/telemetry_service.js b/ansible/artifacts/sunbird/login/resources/js/telemetry_service.js index 6caf54c48d8b158ec0d16db4191c1024fd981e33..59263eb0eed4f349a8e7ef5da15f53eed30a24b2 100644 --- a/ansible/artifacts/sunbird/login/resources/js/telemetry_service.js +++ b/ansible/artifacts/sunbird/login/resources/js/telemetry_service.js @@ -2532,7 +2532,7 @@ if(client_id.toLowerCase() === 'android'){ data: JSON.stringify({ request: { filters: { - isRootOrg: true, + isTenant: true, slug: id || 'ntp' } } diff --git a/deploy/post-install-script.sh b/deploy/post-install-script.sh index 53748dcd075f4fadb480b7da0f44545a7179efff..ff1cd610ebcbf4d39b9e6bd97b7ad3f2a5dd7156 100755 --- a/deploy/post-install-script.sh +++ b/deploy/post-install-script.sh @@ -62,6 +62,21 @@ create_organisation(){ } }' | jq -r .result.organisationId) echo "organisationId: ${organisation}" + + echo -e "\e[0;32m${bold}Creating ntp organisation for login page ${normal}" + curl -sS -XPOST "${proto}://${domain_name}/api/org/v1/create" -H 'Accept: application/json' -H 'Content-Type: application/json' \ + -H "X-Authenticated-User-Token: ${x_authenticated_token}" \ + -H "Authorization: Bearer ${core_vault_sunbird_api_auth_token}" \ + -d '{ + "request":{ + "orgName":"NTP", + "description":"NTP Organisation for Sunbird", + "isRootOrg": true, + "channel": "ntp", + "organisationType": "board", + "isTenant": true + } + }' } create_users(){ @@ -78,7 +93,6 @@ create_users(){ "password": "Pass@123", "phone": "9999911111", "userName": "creator", - "channel": "sunbird", "phoneVerified": true } }' | jq -r .result.userId) @@ -94,7 +108,6 @@ create_users(){ "password": "Pass@123", "phone": "9999911112", "userName": "reviewer", - "channel": "sunbird", "phoneVerified": true } }' | jq -r .result.userId) @@ -110,7 +123,6 @@ create_users(){ "password": "Pass@123", "phone": "9999911113", "userName": "orgadmin", - "channel": "sunbird", "phoneVerified": true } }' | jq -r .result.userId) @@ -664,13 +676,13 @@ printf "\n\n" cassandra_forms get_x_authenticated_token create_organisation -create_users assign_roles create_master_categories create_default_licenses create_default_channel_license create_other_categories system_settings +create_users create_framework create_framework_categories create_framework_terms