Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- DietPi-Software | Update fallback URLs
  • Loading branch information
MichaIng committed Nov 5, 2023
1 parent c5d5340 commit bc8a552
Showing 1 changed file with 16 additions and 34 deletions.
50 changes: 16 additions & 34 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -8732,7 +8732,7 @@ _EOF_
# Install ruTorrent: Web UI for rTorrent
# - Grab current version
local version=$(curl -sSfL 'https://api.github.com/repos/Novik/ruTorrent/releases/latest' | mawk -F\" '/^ *"tag_name": "[^"]*",$/{print $4}')
[[ $version ]] || { version='v4.2.6'; G_DIETPI-NOTIFY 1 "Automatic latest ruTorrent version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
[[ $version ]] || { version='v4.2.7'; G_DIETPI-NOTIFY 1 "Automatic latest ruTorrent version detection failed. Version \"$version\" will be installed as fallback, but a newer version might be available. Please report this at: https://github.com/MichaIng/DietPi/issues"; }
Download_Install "https://github.com/Novik/ruTorrent/archive/$version.tar.gz"

# - Reinstall freshly with preserved configs and 3rd party plugins
Expand Down Expand Up @@ -9734,24 +9734,15 @@ _EOF_
if (( $G_HW_ARCH == 1 ))
then
local url='https://github.com/Radarr/Radarr/releases/download/v3.2.2.5080/Radarr.master.3.2.2.5080.linux.tar.gz'

# ARMv7
else
local url=$(curl -sSfL 'https://api.github.com/repos/Radarr/Radarr/releases/latest' | mawk -F\" '/^ *"browser_download_url": ".*linux-core-arm\.tar\.gz"$/{print $4}')
local fallback_url='https://github.com/Radarr/Radarr/releases/download/v5.0.3.8127/Radarr.master.5.0.3.8127.linux-core-arm.tar.gz'
fi

# ARMv8
if (( $G_HW_ARCH == 3 ))
then
url=${url/arm/arm64}
fallback_url=${fallback_url/arm/arm64}
case $G_HW_ARCH in
2) local arch='arm';;
3) local arch='arm64';;
*) local arch='x64';;
esac

# x86_64
elif (( $G_HW_ARCH == 10 ))
then
url=${url/arm/x64}
fallback_url=${fallback_url/arm/x64}
local url=$(curl -sSfL 'https://api.github.com/repos/Radarr/Radarr/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*linux-core-$arch\.tar\.gz\"$/{print $4}")
local fallback_url="https://github.com/Radarr/Radarr/releases/download/v5.0.3.8127/Radarr.master.5.0.3.8127.linux-core-$arch.tar.gz"
fi

Download_Install "$url"
Expand Down Expand Up @@ -9841,24 +9832,15 @@ _EOF_
if (( $G_HW_ARCH == 1 ))
then
local url='https://github.com/Lidarr/Lidarr/releases/download/v0.8.1.2135/Lidarr.master.0.8.1.2135.linux.tar.gz'

# ARMv7
else
local url=$(curl -sSfL 'https://api.github.com/repos/Lidarr/Lidarr/releases/latest' | mawk -F\" '/^ *"browser_download_url": ".*linux-core-arm\.tar\.gz"$/{print $4}')
local fallback_url='https://github.com/Lidarr/Lidarr/releases/download/v1.4.5.3639/Lidarr.master.1.4.5.3639.linux-core-arm.tar.gz'
fi

# ARMv8
if (( $G_HW_ARCH == 3 ))
then
url=${url/arm/arm64}
fallback_url=${fallback_url/arm/arm64}
case $G_HW_ARCH in
2) local arch='arm';;
3) local arch='arm64';;
*) local arch='x64';;
esac

# x86_64
elif (( $G_HW_ARCH == 10 ))
then
url=${url/arm/x64}
fallback_url=${fallback_url/arm/x64}
local url=$(curl -sSfL 'https://api.github.com/repos/Lidarr/Lidarr/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*linux-core-$arch\.tar\.gz\"$/{print $4}")
local fallback_url="https://github.com/Lidarr/Lidarr/releases/download/v1.4.5.3639/Lidarr.master.1.4.5.3639.linux-core-$arch.tar.gz"
fi

Download_Install "$url"
Expand Down Expand Up @@ -10275,7 +10257,7 @@ _EOF_
*) local arch='x64';;
esac

local fallback_url="https://github.com/Readarr/Readarr/releases/download/v0.3.9.2272/Readarr.develop.0.3.9.2272.linux-core-$arch.tar.gz"
local fallback_url="https://github.com/Readarr/Readarr/releases/download/v0.3.10.2287/Readarr.develop.0.3.10.2287.linux-core-$arch.tar.gz"
Download_Install "$(curl -sSfL 'https://api.github.com/repos/Readarr/Readarr/releases' | mawk -F\" "/^ *\"browser_download_url\": \".*linux-core-$arch\.tar\.gz\"$/{print \$4}" | head -1)"
G_EXEC mv Readarr /opt/readarr
fi
Expand Down

0 comments on commit bc8a552

Please sign in to comment.