mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Merge branch 'master' of github.com:snipe/snipe-it
This commit is contained in:
commit
cb494a74ca
|
@ -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