Merge branch 'master' into dev

This commit is contained in:
t3chn0m4g3
2023-06-27 11:58:39 +00:00
12 changed files with 33 additions and 33 deletions

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."