Improved OS detection

This commit is contained in:
Serghey Rodin 2013-10-21 14:29:57 +03:00
commit 0ae212e554

View file

@ -34,7 +34,7 @@ if [ -e '/etc/redhat-release' ]; then
type="rhel"
fi
if [ -e '/etc/lsb-release' ]; then
if [ -e '/etc/lsb-release' ] && [ -e '/etc/debian_version' ]; then
type="ubuntu"
fi