File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ if ! grep -q spin $NODE_ROOT$CONTAINERD_CONF; then
8383 rm -Rf $NODE_ROOT$KWASM_DIR /active
8484fi
8585
86- # Check if Spin runtime options have not been configured
86+ # Configure Spin runtime options if using systemd cgroups and no options are configured
8787# TODO: this should allow for some options to already be configured and just additively
88- # configuring SystemdCgroup
89- if ! grep -q ' runtimes.spin.options' $NODE_ROOT$CONTAINERD_CONF ; then
88+ # configure SystemdCgroup
89+ if ! grep -q ' runtimes.spin.options' $NODE_ROOT$CONTAINERD_CONF && [ " $SYSTEMD_CGROUP " = " true " ] ; then
9090 echo " Setting SystemdCgroup to $SYSTEMD_CGROUP in Spin containerd configuration"
9191 if $IS_K3S ; then
9292 echo '
You can’t perform that action at this time.
0 commit comments