Added checks for ARM when installing recyclarr
This commit is contained in:
parent
394c395fa6
commit
2308251c1a
2 changed files with 19 additions and 2 deletions
|
@ -38,7 +38,16 @@ python3 -m pip install --break-system-packages --upgrade pip && \
|
|||
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt && \
|
||||
echo "************ install recyclarr ************" && \
|
||||
mkdir -p /recyclarr && \
|
||||
wget "https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz" -O "/recyclarr/recyclarr.tar.xz" && \
|
||||
# Get the hardware architecture
|
||||
architecture=$(uname -m)
|
||||
if [[ "$architecture" == arm* ]] then
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-arm.tar.xz"
|
||||
elif [[ "$architecture" == "aarch64" ]]; then
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-arm64.tar.xz"
|
||||
else
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz"
|
||||
fi
|
||||
wget "$recyclarr_url" -O "/recyclarr/recyclarr.tar.xz" && \
|
||||
tar -xf /recyclarr/recyclarr.tar.xz -C /recyclarr &>/dev/null && \
|
||||
chmod 777 /recyclarr/recyclarr
|
||||
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet8-runtime
|
||||
|
|
|
@ -37,7 +37,15 @@ pip install -r /config/extended/sma/setup/requirements.txt --no-cache-dir --brea
|
|||
chmod 777 -R /config/extended/sma
|
||||
echo "************ install recyclarr ************"
|
||||
mkdir -p /recyclarr
|
||||
wget "https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz" -O "/recyclarr/recyclarr.tar.xz"
|
||||
architecture=$(uname -m)
|
||||
if [[ "$architecture" == arm* ]] then
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-arm.tar.xz"
|
||||
elif [[ "$architecture" == "aarch64" ]]; then
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-arm64.tar.xz"
|
||||
else
|
||||
recyclarr_url="https://github.com/recyclarr/recyclarr/releases/latest/download/recyclarr-linux-musl-x64.tar.xz"
|
||||
fi
|
||||
wget "$recyclarr_url" -O "/recyclarr/recyclarr.tar.xz"
|
||||
tar -xf /recyclarr/recyclarr.tar.xz -C /recyclarr &>/dev/null
|
||||
chmod 777 /recyclarr/recyclarr
|
||||
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community dotnet8-runtime
|
||||
|
|
Loading…
Reference in a new issue