Skip to content

Commit e656831

Browse files
committed
unify OS detection with main install script
1 parent 49e5e51 commit e656831

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

upgrade-guac.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ MYSQL_ROOT_PWD=
7878

7979
# Standardise on a distro version identification lexicon
8080
source /etc/os-release
81-
OS_NAME=$ID
82-
OS_VERSION=$VERSION_ID
83-
OS_CODENAME=$VERSION_CODENAME
81+
ID=$ID
82+
VERSION_ID=$VERSION_ID
83+
VERSION_CODENAME=$VERSION_CODENAME
84+
8485

8586
# Workaround for issue #31
86-
if [[ "${OS_NAME,,}" = "debian" && "${OS_CODENAME,,}" = *"bullseye"* ]] || [[ "${OS_NAME,,}" = "ubuntu" && "${OS_CODENAME,,}" = *"focal"* ]]; then
87+
if [[ "${ID,,}" = "debian" && "${VERSION_CODENAME,,}" = *"bullseye"* ]] || [[ "${ID,,}" = "ubuntu" && "${VERSION_CODENAME,,}" = *"focal"* ]]; then
8788
IFS='.' read -ra guac_version_parts <<< "${GUAC_VERSION}"
8889
major="${guac_version_parts[0]}"
8990
minor="${guac_version_parts[1]}"

0 commit comments

Comments
 (0)