Comment on what architecture was detected

This commit is contained in:
Bob Mottram 2017-06-16 15:46:51 +01:00
parent 9097354a78
commit 3b12b0d13b
3 changed files with 9 additions and 0 deletions

View File

@ -102,12 +102,15 @@ function gogs_parameters {
ARCHITECTURE=$(uname -m)
if [[ ${ARCHITECTURE} == "arm"* ]]; then
CURR_ARCH=armv5
echo $"Using $CURR_ARCH"
fi
if [[ ${ARCHITECTURE} == "amd"* || ${ARCHITECTURE} == "x86_64" ]]; then
CURR_ARCH=amd64
echo $"Using $CURR_ARCH"
fi
if [[ ${ARCHITECTURE} == *"386" || ${ARCHITECTURE} == *"686" ]]; then
CURR_ARCH=386
echo $"Using $CURR_ARCH"
fi
fi

View File

@ -400,12 +400,15 @@ function mesh_install_ipfs_go {
ARCHITECTURE=$(uname -m)
if [[ $ARCHITECTURE == "arm"* ]]; then
IPFS_ARCH=arm
echo $"Using $IPFS_ARCH"
fi
if [[ $ARCHITECTURE == "amd"* || $ARCHITECTURE == "x86_64" ]]; then
IPFS_ARCH=amd64
echo $"Using $IPFS_ARCH"
fi
if [[ $ARCHITECTURE == *"386" || $ARCHITECTURE == *"686" ]]; then
IPFS_ARCH=386
echo $"Using $IPFS_ARCH"
fi
fi

View File

@ -152,12 +152,15 @@ function mesh_upgrade_golang {
ARCHITECTURE=$(uname -m)
if [[ $ARCHITECTURE == "arm"* ]]; then
GOARCH=armv6l
echo $"Using $GOARCH"
fi
if [[ $ARCHITECTURE == "amd"* || $ARCHITECTURE == "x86_64" ]]; then
GOARCH=amd64
echo $"Using $GOARCH"
fi
if [[ $ARCHITECTURE == *"386" || $ARCHITECTURE == *"686" ]]; then
GOARCH=386
echo $"Using $GOARCH"
fi
fi
GO_SOURCE=https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GOARCH}.tar.gz