1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

vars/ubuntu-2110.yml vars/ubuntu-2204.yml etc

This commit is contained in:
root 2021-09-27 14:15:06 -04:00
parent 27401e7e32
commit 2390e90a18
10 changed files with 51 additions and 20 deletions

View file

@ -42,10 +42,14 @@ fi # of 2020: https://github.com/raspberrypi/Raspberry-Pi-OS-64bit/issues/6
if tmp=$(grep ^VERSION_ID= /etc/os-release); then
VERSION_ID=$(echo "$tmp" | cut -d= -f2)
VERSION_ID=${VERSION_ID//\"/} # Remove all '"'
VERSION_ID=${VERSION_ID%%.*} # Remove all '.' & stuff to the right of em
# https://gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
VERSION_ID=${VERSION_ID//\"/} # Remove all '"'
[[ $OS == "ubuntu" ]] && # e.g. '22.04' -> '2204'
VERSION_ID=${VERSION_ID//\./} # Remove all '.'
[[ $OS == "linuxmint" ]] && # e.g. '20.2' -> '20'
VERSION_ID=${VERSION_ID%%.*} # Remove all '.' & stuff to the right
fi
OS_VER=$OS-$VERSION_ID
OS_VER="$OS-$VERSION_ID"
# Previously supported Linux distributions / versions:
#"fedora-18" | \
@ -61,19 +65,16 @@ OS_VER=$OS-$VERSION_ID
#"raspbian-8" | \
#"raspbian-9" | \
# 2021-06-19: Ubuntu 21.10 (Impish Indri) not yet supported but this
# unreleased OS can help testing. For now this means MANUALLY changing
# php_version: 7.4 to 8.0 in /opt/iiab/iiab/vars/ubuntu-21.yml
# 2020-07-31: Debian 12 (Bookworm) not yet supported but adding this line
# to its /etc/os-release can help testing this upcoming OS: VERSION_ID="12"
# 2020-09-27: With Debian 12 (Bookworm) pre-releases, please manually add
# this line to its /etc/os-release before installing IIAB: VERSION_ID="12"
case $OS_VER in
"debian-11" | \
"debian-12" | \
"ubuntu-20" | \
"ubuntu-21" | \
"ubuntu-22" | \
"ubuntu-2004" | \
"ubuntu-2104" | \
"ubuntu-2110" | \
"ubuntu-2204" | \
"linuxmint-20" | \
"linuxmint-21" | \
"raspbian-10" | \