Message in installer that only Debian is supported

This commit is contained in:
myvesta 2020-05-23 14:22:33 +02:00 committed by GitHub
commit 176bfe5d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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