mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 21:47:29 +00:00
manager: Change here documents to use standard delimiter
All scripts should use `EOF` as the shell here document delimiter as this is checked by the static checker. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
9576a7da5d
commit
be12baf3cf
@ -43,7 +43,7 @@ readonly link_dir=${link_dir:-/usr/bin}
|
|||||||
|
|
||||||
readonly tmpdir=$(mktemp -d)
|
readonly tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
readonly warnings=$(cat <<EOT
|
readonly warnings=$(cat <<EOF
|
||||||
WARNINGS:
|
WARNINGS:
|
||||||
|
|
||||||
- Use distro-packages where possible
|
- Use distro-packages where possible
|
||||||
@ -63,7 +63,7 @@ WARNINGS:
|
|||||||
and $containerd_project from binary release packages. These versions may
|
and $containerd_project from binary release packages. These versions may
|
||||||
not have been tested with your distribution version.
|
not have been tested with your distribution version.
|
||||||
|
|
||||||
EOT
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
die()
|
die()
|
||||||
@ -199,7 +199,7 @@ github_download_release()
|
|||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
cat <<EOT
|
cat <<EOF
|
||||||
Usage: $script_name [options] [<kata-version> [<containerd-version>]]
|
Usage: $script_name [options] [<kata-version> [<containerd-version>]]
|
||||||
|
|
||||||
Description: Install $kata_project [1] (and optionally $containerd_project [2])
|
Description: Install $kata_project [1] (and optionally $containerd_project [2])
|
||||||
@ -235,7 +235,7 @@ Advice:
|
|||||||
|
|
||||||
$ kata-runtime check --only-list-releases
|
$ kata-runtime check --only-list-releases
|
||||||
|
|
||||||
EOT
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# Determine if the system only supports cgroups v2.
|
# Determine if the system only supports cgroups v2.
|
||||||
@ -480,7 +480,7 @@ configure_containerd()
|
|||||||
"$script_name")
|
"$script_name")
|
||||||
|
|
||||||
sudo grep -q "$kata_runtime_type" "$cfg" || {
|
sudo grep -q "$kata_runtime_type" "$cfg" || {
|
||||||
cat <<-EOT | sudo tee -a "$cfg"
|
cat <<-EOF | sudo tee -a "$cfg"
|
||||||
# $comment_text
|
# $comment_text
|
||||||
[plugins]
|
[plugins]
|
||||||
[plugins."io.containerd.grpc.v1.cri"]
|
[plugins."io.containerd.grpc.v1.cri"]
|
||||||
@ -489,7 +489,7 @@ configure_containerd()
|
|||||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
|
||||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_runtime_name}]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${kata_runtime_name}]
|
||||||
runtime_type = "${kata_runtime_type}"
|
runtime_type = "${kata_runtime_type}"
|
||||||
EOT
|
EOF
|
||||||
|
|
||||||
modified="true"
|
modified="true"
|
||||||
}
|
}
|
||||||
@ -501,11 +501,11 @@ configure_containerd()
|
|||||||
grep -E "^\s*\<level\>\s*=\s*.*\<debug\>" || true)
|
grep -E "^\s*\<level\>\s*=\s*.*\<debug\>" || true)
|
||||||
|
|
||||||
[ -n "$debug_enabled" ] || {
|
[ -n "$debug_enabled" ] || {
|
||||||
cat <<-EOT | sudo tee -a "$cfg"
|
cat <<-EOF | sudo tee -a "$cfg"
|
||||||
# $comment_text
|
# $comment_text
|
||||||
[debug]
|
[debug]
|
||||||
level = "debug"
|
level = "debug"
|
||||||
EOT
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
modified="true"
|
modified="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user