Skip to content

Commit 0af3819

Browse files
author
Afreen Rahman
committed
updated script
Signed-off-by: Afreen Rahman <[email protected]>
1 parent e570cbf commit 0af3819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-ocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ install_ocs() {
44
echo "Updating the pull secret..."
55

66
oc get -n openshift-config secret/pull-secret -ojson | jq -r '.data.".dockerconfigjson"' | base64 -d | jq > secret.json
7-
jq --arg secret $PULL_SECRET 'del(.auths."quay.io") | .auths += {"quay.io/rhceph-dev": {auth: $secret, email: ""}}' secret.json > temp-secret.json
7+
jq --arg secret $PULL_SECRET '.auths."quay.io"={auth: $secret, email: ""}' secret.json > temp-secret.json
88
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=temp-secret.json
99

1010
sleep 1m

0 commit comments

Comments
 (0)