From 176bfe5d71edb24b1f5c61440e7ea3787f70a9ac Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 23 May 2020 14:22:33 +0200 Subject: [PATCH] Message in installer that only Debian is supported --- install/vst-install.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/install/vst-install.sh b/install/vst-install.sh index aa9ecbf6..b2dd163b 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