monerod deployment fix
This commit is contained in:
parent
9b769a9dbb
commit
9a4abefd9b
@ -21,11 +21,10 @@ spec:
|
|||||||
command: ["/bin/sh","-c"]
|
command: ["/bin/sh","-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
set -euxo pipefail
|
set -eux
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl bzip2
|
apt-get install -y --no-install-recommends ca-certificates curl bzip2
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
ARCH="$(uname -m)"
|
ARCH="$(uname -m)"
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
x86_64) F="monero-linux-x64" ;;
|
x86_64) F="monero-linux-x64" ;;
|
||||||
@ -33,11 +32,8 @@ spec:
|
|||||||
armv7l) F="monero-linux-armv7" ;;
|
armv7l) F="monero-linux-armv7" ;;
|
||||||
*) echo "Unsupported arch: $ARCH" >&2; exit 1 ;;
|
*) echo "Unsupported arch: $ARCH" >&2; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
VER="v0.18.4.1"
|
VER="v0.18.4.1"
|
||||||
# Prefer GitHub release URL (stable + explicit version):
|
URL="https://downloads.getmonero.org/cli/${F}-${VER}.tar.bz2"
|
||||||
URL="https://github.com/monero-project/monero/releases/download/${VER}/${F}-${VER}.tar.bz2"
|
|
||||||
|
|
||||||
echo "Downloading $URL"
|
echo "Downloading $URL"
|
||||||
cd /data
|
cd /data
|
||||||
curl -fL "$URL" -o monero.tar.bz2
|
curl -fL "$URL" -o monero.tar.bz2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user