File tree 1 file changed +5
-5
lines changed
build/docker/tools/tke-installer
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ function start_installer() {
182
182
}
183
183
184
184
function start_registry() {
185
- result=$( echo $@ | grep " \-\-upgrade" )
186
- if [[ " $result " != " " ]]; then
185
+ echo " Step.6 start regisry [in process]"
186
+ checkupgrade=" --upgrade"
187
+ if [[ $@ =~ $checkupgrade ]]; then
187
188
echo " Step.6 upgrade will not start local registry"
188
189
echo " Step.6 start registry [skip]"
189
190
else
190
- echo " Step.6 start regisry [in process]"
191
191
mkdir -p $REGISTRY_DIR
192
- nerdctl run $RegistryHTTPOptions " tkestack/registry-${ARCH} :$REGISTRY_VERSION " $@
193
- nerdctl run $RegistryHTTPSOptions " tkestack/registry-${ARCH} :$REGISTRY_VERSION " $@
192
+ nerdctl run $RegistryHTTPOptions " tkestack/registry-${ARCH} :$REGISTRY_VERSION "
193
+ nerdctl run $RegistryHTTPSOptions " tkestack/registry-${ARCH} :$REGISTRY_VERSION "
194
194
echo " Step.6 start registry [done]"
195
195
fi
196
196
}
You can’t perform that action at this time.
0 commit comments