debian-11.sh,1.54.1.sh: Remove ncp-recommended.cfg after successful dist-upgrade

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias K 2024-05-04 11:37:52 +02:00
parent c75fa44117
commit 3778e397ee
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1
2 changed files with 8 additions and 1 deletions

View File

@ -70,6 +70,7 @@ cfg="$(jq "." "$NCPCFG")"
cfg="$(jq ".release = \"bookworm\"" <<<"$cfg")"
echo "$cfg" > "$NCPCFG"
rm -f /etc/update-motd.d/30ncp-dist-upgrade
rm -f /usr/local/etc/ncp-recommended.cfg
echo "Update to Debian 12 (bookworm) successful."

View File

@ -7,4 +7,10 @@ do
[ -f "$aptlist" ] && sed -i -e "s/#deb /deb /g" "$aptlist"
done
echo "done"
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get update && sudo bash -c 'DEBIAN_FRONTEND=noninteractive apt-get upgrade -y'
. /etc/os-release
if [[ "$VERSION_ID" -eq 12 ]]
then
rm -f /usr/local/etc/ncp-recommended.cfg
fi