Update 'installer.sh'
This commit is contained in:
40
installer.sh
40
installer.sh
@@ -76,24 +76,6 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Firewall:"
|
|
||||||
PS3='Keuze:'
|
|
||||||
options=("iptables" "iptables+fail2ban" "Off")
|
|
||||||
select opt in "${options[@]}"
|
|
||||||
do
|
|
||||||
case $opt in
|
|
||||||
"iptables")
|
|
||||||
firewall="--iptables yes --fail2ban no"
|
|
||||||
break;;
|
|
||||||
"iptables+fail2ban")
|
|
||||||
firewall="--iptables yes --fail2ban yes"
|
|
||||||
break;;
|
|
||||||
"Off")
|
|
||||||
firewall="--vsftpd no --proftpd no"
|
|
||||||
break;;
|
|
||||||
*) echo "Fout commando $REPLY";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "DNS Server -> yes/no?" yn
|
read -p "DNS Server -> yes/no?" yn
|
||||||
@@ -106,28 +88,8 @@ while true; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
while true; do
|
|
||||||
read -p "Filesystem Quota -> yes/no?" yn
|
|
||||||
case $yn in
|
|
||||||
[Yy]* ) quota="--quota yes"
|
|
||||||
break;;
|
|
||||||
[Nn]* ) quota="--quota no"
|
|
||||||
break;;
|
|
||||||
* ) echo "Kies yes of no.";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
read -p "Remi repo -> yes/no?" yn
|
|
||||||
case $yn in
|
|
||||||
[Yy]* ) remi="--remi yes"
|
|
||||||
break;;
|
|
||||||
[Nn]* ) remi="--remi no"
|
|
||||||
break;;
|
|
||||||
* ) echo "Kies yes of no.";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
curl -O http://vestacp.com/pub/vst-install.sh
|
curl -O http://vestacp.com/pub/vst-install.sh
|
||||||
bash vst-install.sh "$webserver" "$dns" "$remi" "$ftp" "$firewall" "$quota" "$mail" --softaculous no --mysql yes --postgresql no --hostname "$domain" --email "$email" --password "$passwd" --interactive yes
|
bash vst-install.sh "$webserver" "$dns" --remi yes "$ftp" --iptables yes --fail2ban yes --quota no "$mail" --softaculous no --mysql yes --postgresql no --hostname "$domain" --email "$email" --password "$passwd" --interactive yes
|
||||||
|
|||||||
Reference in New Issue
Block a user