From e6d6e1903247a380bf11d2288ab38d576d3282bb Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 19 Jul 2016 14:10:45 +0300 Subject: [PATCH] # Fallback to Ubuntu --- install/vst-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/vst-install.sh b/install/vst-install.sh index 9e05feea1..63e6f4f83 100755 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -44,6 +44,11 @@ case $(head -n1 /etc/issue | cut -f 1 -d ' ') in *) type="rhel" ;; esac +# Fallback to Ubuntu +if [ ! -e "/etc/redhat-release" ]; then + type='ubuntu' +fi + # Check wget if [ -e '/usr/bin/wget' ]; then wget http://vestacp.com/pub/vst-install-$type.sh -O vst-install-$type.sh