From 8867c509ce7450fccbcdd700a28a90a67601931c Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sat, 27 Apr 2019 22:07:28 -0700 Subject: [PATCH] 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. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4c93fcebf2..e3f42ee984 100755 --- a/install.sh +++ b/install.sh @@ -189,7 +189,9 @@ verify_k3s_is_executable() { # --- set arch and suffix, fatal if architecture not supported --- setup_verify_arch() { - ARCH=`uname -m` + if [ -z "$ARCH" ]; then + ARCH=`uname -m` + fi case $ARCH in amd64) ARCH=amd64