Add ability to set architecture

The ARCH env var can be set by the install.sh caller.  This is
specifically important if you want to install arm on arm64.
This commit is contained in:
Darren Shepherd 2019-04-27 22:07:28 -07:00
parent a66aae51fe
commit 8867c509ce

View File

@ -189,7 +189,9 @@ verify_k3s_is_executable() {
# --- set arch and suffix, fatal if architecture not supported ---
setup_verify_arch() {
if [ -z "$ARCH" ]; then
ARCH=`uname -m`
fi
case $ARCH in
amd64)
ARCH=amd64