debian-11.sh: Stop preventing dist-upgrade on raspbian

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias K 2024-05-02 13:19:55 +02:00
parent 451f80324f
commit 8e22917272
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1

View File

@ -2,16 +2,6 @@
set -eu -o pipefail
if [[ "${ALLOW_RASPBIAN_UPGRADE:-}" != "yes" ]] && grep -R 'raspberrypi.com' /etc/apt/sources.list* > /dev/null
then
echo "WARN: Raspbian system detected!
There have been errors reported when upgrading from Raspbian which are still being worked on.
Please try this command again in some time.
UPDATE: Those issues *MAY* have been fixed now. If you feel confident to try (and have reliable backups), run 'sudo bash -c \"ALLOW_RASPBIAN_UPGRADE=yes ncp-dist-upgrade\"'"
exit 0
fi
new_cfg=/usr/local/etc/ncp-recommended.cfg
[[ -f "${new_cfg}" ]] || { echo "Already on the lastest recommended distribution. Abort." >&2; exit 1; }