From 054b6cdf5e174befec9ef8c47f82e072834e9129 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Wed, 11 Oct 2023 19:13:43 -0400 Subject: [PATCH 1/3] api: increase minimum supported versions of debian and ubuntu --- api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api b/api index f1d55a8ba6..6a1e3cb5f6 100755 --- a/api +++ b/api @@ -2555,10 +2555,10 @@ apt.armbian.com")" elif cat /proc/version | grep -qi Microsoft || cat /proc/sys/kernel/osrelease | grep -qi WSL || [[ -f "/run/WSL" ]] || [[ -f "/etc/wsl.conf" ]] || [ -n "$WSL_DISTRO_NAME" ]; then echo "Pi-Apps is not supported on WSL." return 1 - elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "10" "$__os_release" | sort -CV ; then + elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 - elif [ "$__os_id" == "Ubuntu" ] && ! printf '%s\n' "18.04" "$__os_release" | sort -CV ; then + elif [ "$__os_id" == "Ubuntu" ] && ! printf '%s\n' "20.04" "$__os_release" | sort -CV ; then echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 elif echo "$PRETTY_NAME" | grep -qi 'manjaro'; then From 2e498c4acd63017feda5b4ea979e62e8eeff2d20 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:36:10 -0500 Subject: [PATCH 2/3] Add bookworm message for buster users --- api | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api b/api index 6a1e3cb5f6..b42cde8665 100755 --- a/api +++ b/api @@ -2555,9 +2555,12 @@ apt.armbian.com")" elif cat /proc/version | grep -qi Microsoft || cat /proc/sys/kernel/osrelease | grep -qi WSL || [[ -f "/run/WSL" ]] || [[ -f "/etc/wsl.conf" ]] || [ -n "$WSL_DISTRO_NAME" ]; then echo "Pi-Apps is not supported on WSL." return 1 - elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then + elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "10" "$__os_release" | sort -CV ; then echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 + elif [ "$__os_id" == "Raspbian" ] && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then + echo "Pi-Apps is no longer supported on your Pi OS $__os_release operating system. Consider upgrading to Pi OS Bookworm. https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/" + return 1 elif [ "$__os_id" == "Ubuntu" ] && ! printf '%s\n' "20.04" "$__os_release" | sort -CV ; then echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 From e75ea220ddd597264d067b3db4ee7c74a862b577 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:45:32 -0500 Subject: [PATCH 3/3] Update api --- api | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api b/api index b42cde8665..beb502152b 100755 --- a/api +++ b/api @@ -2555,11 +2555,11 @@ apt.armbian.com")" elif cat /proc/version | grep -qi Microsoft || cat /proc/sys/kernel/osrelease | grep -qi WSL || [[ -f "/run/WSL" ]] || [[ -f "/etc/wsl.conf" ]] || [ -n "$WSL_DISTRO_NAME" ]; then echo "Pi-Apps is not supported on WSL." return 1 - elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "10" "$__os_release" | sort -CV ; then - echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." + elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && [ -f /etc/rpi-issue ] && [ "$__os_release" == 10 ]; then + echo "Pi-Apps is no longer supported on your Pi OS Buster operating system. Consider upgrading to Pi OS Bookworm. https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/" return 1 - elif [ "$__os_id" == "Raspbian" ] && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then - echo "Pi-Apps is no longer supported on your Pi OS $__os_release operating system. Consider upgrading to Pi OS Bookworm. https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/" + elif ([ "$__os_id" == "Debian" ] || [ "$__os_id" == "Raspbian" ]) && ! printf '%s\n' "11" "$__os_release" | sort -CV ; then + echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 elif [ "$__os_id" == "Ubuntu" ] && ! printf '%s\n' "20.04" "$__os_release" | sort -CV ; then echo "Pi-Apps is not supported on your outdated $__os_id $__os_release operating system. Expect many apps to fail. Consider upgrading your operating system."