mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Message in installer that only Debian is supported
This commit is contained in:
parent
a7dc2ee204
commit
176bfe5d71
1 changed files with 18 additions and 2 deletions
|
@ -46,9 +46,25 @@ case $(head -n1 /etc/issue | cut -f 1 -d ' ') in
|
||||||
*) type="rhel" ;;
|
*) type="rhel" ;;
|
||||||
esac
|
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
|
# Check wget
|
||||||
if [ -e '/usr/bin/wget' ]; then
|
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
|
if [ "$?" -eq '0' ]; then
|
||||||
bash vst-install-$type.sh $*
|
bash vst-install-$type.sh $*
|
||||||
exit
|
exit
|
||||||
|
@ -60,7 +76,7 @@ fi
|
||||||
|
|
||||||
# Check curl
|
# Check curl
|
||||||
if [ -e '/usr/bin/curl' ]; then
|
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
|
if [ "$?" -eq '0' ]; then
|
||||||
bash vst-install-$type.sh $*
|
bash vst-install-$type.sh $*
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue