mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-13 02:16:48 +00:00
Force BINLOCATION to arkade install
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
0d74cac072
commit
599ae5415f
@ -3,7 +3,6 @@
|
|||||||
set -e # stop on error
|
set -e # stop on error
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
echo "Please run as root or with sudo"
|
echo "Please run as root or with sudo"
|
||||||
exit
|
exit
|
||||||
@ -55,15 +54,13 @@ fi
|
|||||||
echo "2. Downloading OCI image, and installing pre-requisites"
|
echo "2. Downloading OCI image, and installing pre-requisites"
|
||||||
echo ""
|
echo ""
|
||||||
if [ ! -x "$(command -v arkade)" ]; then
|
if [ ! -x "$(command -v arkade)" ]; then
|
||||||
|
|
||||||
# For Centos, RHEL, Fedora, Amazon Linux, and Oracle Linux, use BINLOCATION=/usr/bin/
|
# For Centos, RHEL, Fedora, Amazon Linux, and Oracle Linux, use BINLOCATION=/usr/bin/
|
||||||
BINLOCATION=/usr/local/bin/
|
|
||||||
|
|
||||||
if [ -n "$(command -v yum)" ]; then
|
if $(has_yum); then
|
||||||
BINLOCATION=/usr/bin/
|
BINLOCATION=/usr/bin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -sLS https://get.arkade.dev | sh
|
curl -sLS https://get.arkade.dev | BINLOCATION=${BINLOCATION} sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH=$PATH:$HOME/.arkade/bin
|
PATH=$PATH:$HOME/.arkade/bin
|
||||||
@ -83,7 +80,7 @@ killall -9 faasd || :
|
|||||||
# Rather than the :latest tag, a specific tag can be given
|
# Rather than the :latest tag, a specific tag can be given
|
||||||
# Use "crane ls ghcr.io/openfaasltd/faasd-pro" to see available tags
|
# Use "crane ls ghcr.io/openfaasltd/faasd-pro" to see available tags
|
||||||
|
|
||||||
arkade oci install --path ${tmpdir} \
|
${BINLOCATION}arkade oci install --path ${tmpdir} \
|
||||||
ghcr.io/openfaasltd/faasd-pro:latest
|
ghcr.io/openfaasltd/faasd-pro:latest
|
||||||
|
|
||||||
cd ${tmpdir}
|
cd ${tmpdir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user