File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ install_registry() {
103
103
echo " Registry installation successful"
104
104
105
105
# Update Role Permission for registry.
106
- bash scripts/registry_role_permissions.sh
106
+ if [[ $1 ]]; then
107
+ bash scripts/registry_role_permissions.sh $1
108
+ else
109
+ bash scripts/registry_role_permissions.sh
110
+ fi
107
111
}
108
112
109
113
# Function to install Layer2 Config
@@ -355,7 +359,7 @@ get_np_domain() {
355
359
local login_url=" ${registry_url%/ subscribers} "
356
360
read -p " Enter the domain name for $1 : " np_domain
357
361
domain_present=$( curl -s -H " ApiKey:$api_key " --header ' Content-Type: application/json' $login_url /network_domains/index | jq -r ' .[].name' | tr ' \n' ' ' )
358
- if echo " $domain_present " | grep -qw " $np_domain " ; then
362
+ if echo " : $domain_present : " | grep -qw " : $np_domain : " ; then
359
363
return 0
360
364
else
361
365
echo " ${BoldRed} The domain '$np_domain ' is NOT present in the network domains.${NC} "
You can’t perform that action at this time.
0 commit comments