File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ disabled_plugins = ["restart"]
181181EOF
182182chmod 644 " ${config_path} "
183183
184- # CONTAINERD_EXTRA_RUNTIME_HANDLER is the extra runtime handler to install.
185- CONTAINERD_EXTRA_RUNTIME_HANDLER =${CONTAINERD_EXTRA_RUNTIME_HANDLER:- " " }
186- if [[ -n " ${CONTAINERD_EXTRA_RUNTIME_HANDLER } " ]]; then
184+ # containerd_extra_runtime_handler is the extra runtime handler to install.
185+ containerd_extra_runtime_handler =${CONTAINERD_EXTRA_RUNTIME_HANDLER:- " " }
186+ if [[ -n " ${containerd_extra_runtime_handler } " ]]; then
187187 cat >> ${config_path} << EOF
188- [plugins.cri.containerd.runtimes.${CONTAINERD_EXTRA_RUNTIME_HANDLER } ]
188+ [plugins.cri.containerd.runtimes.${containerd_extra_runtime_handler } ]
189189 runtime_type = "${CONTAINERD_EXTRA_RUNTIME_TYPE:- io.containerd.runc.v1} "
190190
191- [plugins.cri.containerd.runtimes.${CONTAINERD_EXTRA_RUNTIME_HANDLER } .options]
191+ [plugins.cri.containerd.runtimes.${containerd_extra_runtime_handler } .options]
192192${CONTAINERD_EXTRA_RUNTIME_OPTIONS:- }
193193EOF
194194fi
You can’t perform that action at this time.
0 commit comments