Skip to content

Commit

Permalink
reqs: Fix "line 149: SNAPSHOTTER: unbound variable"
Browse files Browse the repository at this point in the history
For now we're only using nydus, let's make sure to set it properly
instead of depending on a non-existent env var.

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Oct 9, 2023
1 parent fdbd804 commit 8dc7d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/pre-install-payload/scripts/reqs-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function configure_nydus_snapshotter_for_containerd() {
echo "Plug nydus snapshotter into containerd"
snapshotter_socket="/run/containerd-nydus/containerd-nydus-grpc.sock"
fi
proxy_config=" [proxy_plugins.$SNAPSHOTTER]\n type = \"snapshot\"\n address = \"${snapshotter_socket}\""
proxy_config=" [proxy_plugins.nydus]\n type = \"snapshot\"\n address = \"${snapshotter_socket}\""

if grep -q "\[proxy_plugins\]" "$containerd_config"; then
sed -i '/\[proxy_plugins\]/a\'"$proxy_config" "$containerd_config"
Expand Down

0 comments on commit 8dc7d0d

Please sign in to comment.