File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 22
33set -eu -o pipefail
44
5- if grep -R ' raspberrypi.com' /etc/apt/sources.list* > /dev/null
6- then
7- echo " WARN: Raspbian system detected!
8- There have been errors reported when upgrading from Raspbian which are still being worked on.
9- Please try this command again in some time."
10- exit 0
11- fi
12-
135new_cfg=/usr/local/etc/ncp-recommended.cfg
146[[ -f " ${new_cfg} " ]] || { echo " Already on the lastest recommended distribution. Abort." >&2 ; exit 1; }
157
@@ -46,15 +38,16 @@ save_maintenance_mode
4638# Perform dist-upgrade
4739
4840apt-get update && apt-get upgrade -y
49- for aptlist in /etc/apt/sources.list /etc/apt/sources.list.d/php.list /etc/apt/sources .list.d/armbian. list
41+ for aptlist in /etc/apt/sources.list /etc/apt/sources.list.d/{ php.list,armbian .list,raspi. list}
5042do
5143 [ -f " $aptlist " ] && sed -i -e " s/bullseye/bookworm/g" " $aptlist "
5244done
5345for aptlist in /etc/apt/sources.list.d/* .list
5446do
55- [[ " $aptlist " =~ " /etc/apt/sources.list.d/" (php| armbian)" .list" ]] || continue
47+ [[ " $aptlist " =~ " /etc/apt/sources.list.d/" (php| armbian| raspi )" .list" ]] || {
5648 echo " Disabling repositories from \" $aptlist \" "
5749 sed -i -e " s/deb/#deb/g" " $aptlist "
50+ }
5851done
5952apt-get update && apt-get upgrade -y --without-new-pkgs
6053if is_lxc
You can’t perform that action at this time.
0 commit comments