'Main-Install-Script.sh' updaten
Alle VestaCP refereces verwijdert
This commit is contained in:
@@ -51,25 +51,16 @@ do
|
|||||||
"Apache")
|
"Apache")
|
||||||
webserver=apache
|
webserver=apache
|
||||||
certbot_server=apache
|
certbot_server=apache
|
||||||
vesta_apache=yes
|
|
||||||
vesta_nginx=no
|
|
||||||
vesta_fpm=no
|
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Apache, Nginx reverse proxy")
|
"Apache, Nginx reverse proxy")
|
||||||
webserver=apache_nginx
|
webserver=apache_nginx
|
||||||
certbot_server=nginx
|
certbot_server=nginx
|
||||||
vesta_apache=yes
|
|
||||||
vesta_nginx=yes
|
|
||||||
vesta_fpm=no
|
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Nginx, PHP-FPM")
|
"Nginx, PHP-FPM")
|
||||||
webserver=nginx
|
webserver=nginx
|
||||||
certbot_server=nginx
|
certbot_server=nginx
|
||||||
vesta_apache=no
|
|
||||||
vesta_nginx=yes
|
|
||||||
vesta_fpm=yes
|
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Quit")
|
"Quit")
|
||||||
@@ -79,7 +70,7 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
while (( $vestacp != 1 )); do
|
while true; do
|
||||||
read -p "Installeer PHPmyAdmin -> yes/no?" yn
|
read -p "Installeer PHPmyAdmin -> yes/no?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) phpmyadmin=1
|
[Yy]* ) phpmyadmin=1
|
||||||
@@ -90,7 +81,7 @@ while (( $vestacp != 1 )); do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
while (( $vestacp != 1 )); do
|
while true; do
|
||||||
read -p "Installeer Postfix -> yes/no?" yn
|
read -p "Installeer Postfix -> yes/no?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) postfix=1
|
[Yy]* ) postfix=1
|
||||||
@@ -145,7 +136,7 @@ while true; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
while (( $vestacp != 1 )); do
|
while true; do
|
||||||
read -p "Installeer Wordpress -> yes/no?" yn
|
read -p "Installeer Wordpress -> yes/no?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) wordpress=1
|
[Yy]* ) wordpress=1
|
||||||
@@ -174,7 +165,7 @@ apt install sshpass -y
|
|||||||
# Apache Install #
|
# Apache Install #
|
||||||
#----------------------#
|
#----------------------#
|
||||||
|
|
||||||
if [ $webserver = apache && $vestacp = 0 ]
|
if [ $webserver = apache ]
|
||||||
then
|
then
|
||||||
echo "install apache"
|
echo "install apache"
|
||||||
ufw allow OpenSSH
|
ufw allow OpenSSH
|
||||||
@@ -226,7 +217,7 @@ fi
|
|||||||
# Apache_Nginx Install #
|
# Apache_Nginx Install #
|
||||||
#----------------------#
|
#----------------------#
|
||||||
|
|
||||||
if [ $webserver = apache_nginx ] && [ $vestacp = 0 ]
|
if [ $webserver = apache_nginx ]
|
||||||
then
|
then
|
||||||
echo "install apache_nginx"
|
echo "install apache_nginx"
|
||||||
ufw allow OpenSSH
|
ufw allow OpenSSH
|
||||||
@@ -240,7 +231,7 @@ if [ $webserver = apache_nginx ] && [ $vestacp = 0 ]
|
|||||||
# Nginx Install #
|
# Nginx Install #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
if [ $webserver = nginx ] && [ $vestacp = 0 ]
|
if [ $webserver = nginx ]
|
||||||
then
|
then
|
||||||
echo "install NGINX"
|
echo "install NGINX"
|
||||||
ufw allow OpenSSH
|
ufw allow OpenSSH
|
||||||
@@ -508,7 +499,7 @@ fi
|
|||||||
# PHPmyAdmin Install #
|
# PHPmyAdmin Install #
|
||||||
#--------------------#
|
#--------------------#
|
||||||
|
|
||||||
if [ $phpmyadmin = 1 ] && [ $vestacp = 0 ]
|
if [ $phpmyadmin = 1 ]
|
||||||
then
|
then
|
||||||
echo "install php myadmin"
|
echo "install php myadmin"
|
||||||
apt-get install phpmyadmin -y
|
apt-get install phpmyadmin -y
|
||||||
@@ -524,7 +515,7 @@ fi
|
|||||||
# Postfix Install #
|
# Postfix Install #
|
||||||
#-----------------#
|
#-----------------#
|
||||||
|
|
||||||
if [ $postfix = 1 ] && [ $vestacp = 0 ]
|
if [ $postfix = 1 ]
|
||||||
then
|
then
|
||||||
echo "install postfix"
|
echo "install postfix"
|
||||||
apt install mailutils -y
|
apt install mailutils -y
|
||||||
|
|||||||
Reference in New Issue
Block a user