mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
More specific detecting of Ubuntu OS. Closes #246.
This commit is contained in:
parent
a93a094471
commit
6140837f0d
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ if [ -e '/etc/redhat-release' ]; then
|
|||
fi
|
||||
VERSION=$(cat /etc/redhat-release | tr ' ' '\n' |grep [0-9])
|
||||
else
|
||||
if [ -e '/etc/lsb-release' ] && [ -e '/etc/debian_version' ]; then
|
||||
if [ "$(lsb_release -si)" == "Ubuntu" ] && [ -e '/etc/debian_version' ]; then
|
||||
OS="Ubuntu"
|
||||
VERSION=$(grep DISTRIB_RELEASE /etc/lsb-release| cut -f 2 -d '=')
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue