From 704b76c90a0461b53208a9e05b0856c6616bf1d6 Mon Sep 17 00:00:00 2001 From: akanealw Date: Sun, 27 Aug 2023 11:43:02 -0500 Subject: [PATCH] updated scripts --- debian/debian-essentials.sh | 5 +++-- debian/debian-regenerate-ssh-keys-machine-id.sh | 2 ++ debian/debian-update-sources.sh | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index 4ebc590..39e90a3 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -12,7 +12,7 @@ fi # update bookworm to new debian.sources file if [[ -f /etc/apt/sources.list.d/debian.sources ]] then - echo "Sources already updated" + echo "Bookworm sources already updated." else isInFile=$(cat /etc/apt/sources.list | grep -c "bullseye") if [ $isInFile -eq 0 ] @@ -31,8 +31,9 @@ if [[ -f /etc/apt/sources.list.d/debian.sources ]] echo "Components: main" >> /etc/apt/sources.list.d/debian.sources mv /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1 rm /etc/apt/sources.list.11.backup > /dev/null 2>&1 + echo "Bookworm sources updated successfully." else - echo "Bullseye detected, skipping sources update" + echo "Bullseye detected, skipping sources update." fi fi diff --git a/debian/debian-regenerate-ssh-keys-machine-id.sh b/debian/debian-regenerate-ssh-keys-machine-id.sh index 495900a..93da731 100644 --- a/debian/debian-regenerate-ssh-keys-machine-id.sh +++ b/debian/debian-regenerate-ssh-keys-machine-id.sh @@ -27,4 +27,6 @@ if [[ ! -d /etc/cloud ]] else echo "SSH host keys not regenerated." fi + else + echo "SSH host keys not regenerated." fi diff --git a/debian/debian-update-sources.sh b/debian/debian-update-sources.sh index b1aa831..e1b20d3 100644 --- a/debian/debian-update-sources.sh +++ b/debian/debian-update-sources.sh @@ -3,7 +3,7 @@ # update bookworm to new debian.sources file if [[ -f /etc/apt/sources.list.d/debian.sources ]] then - echo "Sources already updated." + echo "Bookworm sources already updated." else isInFile=$(cat /etc/apt/sources.list | grep -c "bullseye") if [ $isInFile -eq 0 ]