diff --git a/install/vst-install.sh b/install/vst-install.sh index aa9ecbf62..b2dd163b0 100755 --- a/install/vst-install.sh +++ b/install/vst-install.sh @@ -46,9 +46,25 @@ case $(head -n1 /etc/issue | cut -f 1 -d ' ') in *) type="rhel" ;; esac +if [ "$type" = "ubuntu" ]; then + echo "Sorry, Ubuntu is not supported." + echo "myVesta supports only Debian." + exit; +fi +if [ "$type" = "amazon" ]; then + echo "Sorry, Amazon linux cdistribution is not supported." + echo "myVesta supports only Debian." + exit; +fi +if [ "$type" = "rhel" ]; then + echo "Sorry, CentOS is not supported." + echo "myVesta supports only Debian." + exit; +fi + # Check wget if [ -e '/usr/bin/wget' ]; then - wget http://vestacp.com/pub/vst-install-$type.sh -O vst-install-$type.sh + wget http://c.myvestacp.com/vst-install-$type.sh -O vst-install-$type.sh if [ "$?" -eq '0' ]; then bash vst-install-$type.sh $* exit @@ -60,7 +76,7 @@ fi # Check curl if [ -e '/usr/bin/curl' ]; then - curl -O http://vestacp.com/pub/vst-install-$type.sh + curl -O http://c.myvestacp.com/vst-install-$type.sh if [ "$?" -eq '0' ]; then bash vst-install-$type.sh $* exit