mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Fixing a regression for RHEL 6 with snipe/snipe-it#2993 (#3572)
This commit is contained in:
parent
c8796cf045
commit
5a3816c907
|
@ -111,10 +111,8 @@ function isinstalled {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f /etc/lsb-release ]; then
|
if [ -f /etc/lsb-release ]; then
|
||||||
. /etc/lsb-release
|
distro="$(lsb_release -s -i )"
|
||||||
distro="${DISTRIB_ID,,}"
|
version="$(lsb_release -s -r)"
|
||||||
version="$DISTRIB_RELEASE"
|
|
||||||
codename="$DISTRIB_CODENAME"
|
|
||||||
elif [ -f /etc/os-release ]; then
|
elif [ -f /etc/os-release ]; then
|
||||||
distro="$(. /etc/os-release && echo $ID)"
|
distro="$(. /etc/os-release && echo $ID)"
|
||||||
version="$(. /etc/os-release && echo $VERSION_ID)"
|
version="$(. /etc/os-release && echo $VERSION_ID)"
|
||||||
|
|
Loading…
Reference in a new issue