When piping the script to bash (cat ./environment_check.sh | bash), the
part after `kubectl exec -i` will be interpreted as the input for the
command inside kubectl exec command. As the result, the env check script
doesn't perform the steps after that kubectl exec command. Removing the
`-i` flag fixed the issue.
Also, replacing `kubectl exec -t` by `kubectl exec` because the input of
kubectl exec command is not a terminal device
longhorn-5653
Signed-off-by: Phan Le <phan.le@suse.com>
* Fix for bug #5304.
It uses the same technologie to get the kernel release as it was used
before to get the os of the node
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
* used a lower case variable name as suggested by innobead
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
---------
Signed-off-by: Achim Schaefer <longhorn@schaefer-home.eu>
Co-authored-by: David Ko <dko@suse.com>
(cherry picked from commit 94a23e5b05)
Made environment_check.sh POSIX compliant
Signed-off-by: Harold Holsappel <h.holsappel@iwink.nl>
Co-authored-by: Harold Holsappel <h.holsappel@iwink.nl>
(cherry picked from commit 5a071e502c)
This addition will allow Gentoo users to run this script and get sensible error messages in case they forgot to install required packages.
Signed-off-by: Serge Tkatchouk <sp1j3t@gmail.com>