add bookworm check to updates

while not supported the update script will no longer break if bookworm is found
This commit is contained in:
t3chn0m4g3 2023-06-27 09:53:28 +00:00
parent a0c5a8c0e7
commit 81fab84040

View file

@ -3,7 +3,7 @@
# Some global vars
myCONFIGFILE="/opt/tpot/etc/tpot.yml"
myCOMPOSEPATH="/opt/tpot/etc/compose"
myLSB_RELEASE="bullseye"
myLSB_RELEASE=("bullseye" "bookworm")
myRED=""
myGREEN=""
myWHITE=""
@ -91,7 +91,7 @@ local myMASTERVERSION="22.04.0"
echo
echo "### Checking for Release ID"
myRELEASE=$(lsb_release -c | awk '{ print $2 }')
if [ "$myRELEASE" != "$myLSB_RELEASE" ]
if [[ ! " ${myLSB_RELEASE[@]} " =~ " ${myRELEASE} " ]];
then
echo "###### Need to upgrade to Debian 11 (Bullseye) first:$myWHITE"" [ $myRED""NOT OK""$myWHITE ]"
echo "###### Upgrade may result in complete data loss and should not be run via SSH."