mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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
|
||||
. /etc/lsb-release
|
||||
distro="${DISTRIB_ID,,}"
|
||||
version="$DISTRIB_RELEASE"
|
||||
codename="$DISTRIB_CODENAME"
|
||||
distro="$(lsb_release -s -i )"
|
||||
version="$(lsb_release -s -r)"
|
||||
elif [ -f /etc/os-release ]; then
|
||||
distro="$(. /etc/os-release && echo $ID)"
|
||||
version="$(. /etc/os-release && echo $VERSION_ID)"
|
||||
|
|
Loading…
Reference in a new issue