mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-13 09:52:32 +00:00
unify OS detection with main install script
This commit is contained in:
parent
49e5e5100d
commit
e656831695
1 changed files with 5 additions and 4 deletions
|
|
@ -78,12 +78,13 @@ MYSQL_ROOT_PWD=
|
|||
|
||||
# Standardise on a distro version identification lexicon
|
||||
source /etc/os-release
|
||||
OS_NAME=$ID
|
||||
OS_VERSION=$VERSION_ID
|
||||
OS_CODENAME=$VERSION_CODENAME
|
||||
ID=$ID
|
||||
VERSION_ID=$VERSION_ID
|
||||
VERSION_CODENAME=$VERSION_CODENAME
|
||||
|
||||
|
||||
# Workaround for issue #31
|
||||
if [[ "${OS_NAME,,}" = "debian" && "${OS_CODENAME,,}" = *"bullseye"* ]] || [[ "${OS_NAME,,}" = "ubuntu" && "${OS_CODENAME,,}" = *"focal"* ]]; then
|
||||
if [[ "${ID,,}" = "debian" && "${VERSION_CODENAME,,}" = *"bullseye"* ]] || [[ "${ID,,}" = "ubuntu" && "${VERSION_CODENAME,,}" = *"focal"* ]]; then
|
||||
IFS='.' read -ra guac_version_parts <<< "${GUAC_VERSION}"
|
||||
major="${guac_version_parts[0]}"
|
||||
minor="${guac_version_parts[1]}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue