More specific detecting of Ubuntu OS. Closes #246.

This commit is contained in:
Henri Schumacher 2014-12-05 01:20:19 +01:00
commit 6140837f0d
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ if [ -e '/etc/redhat-release' ]; then
fi fi
VERSION=$(cat /etc/redhat-release | tr ' ' '\n' |grep [0-9]) VERSION=$(cat /etc/redhat-release | tr ' ' '\n' |grep [0-9])
else else
if [ -e '/etc/lsb-release' ] && [ -e '/etc/debian_version' ]; then if [ "$(lsb_release -si)" == "Ubuntu" ] && [ -e '/etc/debian_version' ]; then
OS="Ubuntu" OS="Ubuntu"
VERSION=$(grep DISTRIB_RELEASE /etc/lsb-release| cut -f 2 -d '=') VERSION=$(grep DISTRIB_RELEASE /etc/lsb-release| cut -f 2 -d '=')
else else

View file

@ -95,7 +95,7 @@ if [ "x$(id -u)" != 'x0' ]; then
fi fi
# Check supported version # Check supported version
if [ -e '/etc/redhat-release' ] || [ -e '/etc/lsb-release' ]; then if [ -e '/etc/redhat-release' ] || [ "$(lsb_release -si)" == "Ubuntu" ]; then
echo 'Error: sorry, this installer works only on Debian 7' echo 'Error: sorry, this installer works only on Debian 7'
exit 1 exit 1
fi fi

View file

@ -42,7 +42,7 @@ if [ -e '/etc/redhat-release' ]; then
type="rhel" type="rhel"
fi fi
if [ -e '/etc/lsb-release' ] && [ -e '/etc/debian_version' ]; then if [ "$(lsb_release -si)" == "Ubuntu" ] && [ -e '/etc/debian_version' ]; then
type="ubuntu" type="ubuntu"
fi fi