diff --git a/bin/v-list-sys-info b/bin/v-list-sys-info index 4a32679d5..c9f9ec0d2 100755 --- a/bin/v-list-sys-info +++ b/bin/v-list-sys-info @@ -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 diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index ea6bf7d02..a188c0653 100644 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -95,7 +95,7 @@ if [ "x$(id -u)" != 'x0' ]; then fi # 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' exit 1 fi diff --git a/install/vst-install.sh b/install/vst-install.sh index b3c3f50ad..8d07cce27 100644 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -42,7 +42,7 @@ if [ -e '/etc/redhat-release' ]; then type="rhel" fi -if [ -e '/etc/lsb-release' ] && [ -e '/etc/debian_version' ]; then +if [ "$(lsb_release -si)" == "Ubuntu" ] && [ -e '/etc/debian_version' ]; then type="ubuntu" fi