Fixing a regression for RHEL 6 with snipe/snipe-it#2993 (#3572)

This commit is contained in:
Nate Felton 2017-05-12 20:19:41 -04:00 committed by snipe
parent c8796cf045
commit 5a3816c907

View file

@ -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)"