From 8d0dbcd50ed7092933dafa6409a2640b7415d6ef Mon Sep 17 00:00:00 2001 From: Chris Fowles <826502+chrisfowles@users.noreply.github.com> Date: Wed, 11 Aug 2021 03:53:01 +1000 Subject: [PATCH] Detect and download FTB ARM installer (#995) Co-authored-by: Chris Fowles --- start-deployFTBA | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/start-deployFTBA b/start-deployFTBA index fa4f4b00..91318f38 100644 --- a/start-deployFTBA +++ b/start-deployFTBA @@ -30,7 +30,13 @@ if ! [ -f "${ftbInstallMarker}" ] || [ $(cat "${ftbInstallMarker}") != "${FTB_MO ftbInstaller=/data/ftb-installer if ! [[ -f "${ftbInstaller}" ]]; then log "Downloading FTB installer" - curl -fsSL https://api.modpacks.ch/public/modpack/1/1/server/linux -o "${ftbInstaller}" + if [ "$(uname -m)" == "aarch64" ]; then + log "Downloading ARM installer" + curl -fsSL https://api.modpacks.ch/public/modpack/1/1/server/arm/linux -o "${ftbInstaller}" + else + log "Downloading x86 installer" + curl -fsSL https://api.modpacks.ch/public/modpack/1/1/server/linux -o "${ftbInstaller}" + fi chmod +x "${ftbInstaller}" fi