Skip to content

Commit

Permalink
debian-11.sh,1.54.1.sh: Remove ncp-recommended.cfg after successful d…
Browse files Browse the repository at this point in the history
…ist-upgrade

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
  • Loading branch information
theCalcaholic committed May 4, 2024
1 parent c75fa44 commit 3778e39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/ncp-dist-upgrade.d/debian-11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down
8 changes: 7 additions & 1 deletion updates/1.54.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3778e39

Please sign in to comment.