|
@@ -9,6 +9,7 @@
|
|
|
# CentOS 5, 6, 7
|
|
# CentOS 5, 6, 7
|
|
|
# Debian 7, 8
|
|
# Debian 7, 8
|
|
|
# Ubuntu 12.04 - 18.04
|
|
# Ubuntu 12.04 - 18.04
|
|
|
|
|
+# Amazon Linux 2017
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
# Am I root?
|
|
# Am I root?
|
|
@@ -45,11 +46,6 @@ case $(head -n1 /etc/issue | cut -f 1 -d ' ') in
|
|
|
*) type="rhel" ;;
|
|
*) type="rhel" ;;
|
|
|
esac
|
|
esac
|
|
|
|
|
|
|
|
-# Fallback to Ubuntu
|
|
|
|
|
-if [ ! -e "/etc/redhat-release" ]; then
|
|
|
|
|
- type='ubuntu'
|
|
|
|
|
-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://vestacp.com/pub/vst-install-$type.sh -O vst-install-$type.sh
|