This commit is contained in:
Bachir Soussi Chiadmi 2015-03-12 20:02:57 +01:00
parent 69562ba008
commit 8191f8dbd6

View File

@ -11,7 +11,7 @@
echo "\033[35;1mThis script has been tested only on Linux Debian 7 \033[0m" echo "\033[35;1mThis script has been tested only on Linux Debian 7 \033[0m"
echo "Please run this script as root" echo "Please run this script as root"
echo -n "Should we start? [Y\n] " echo -n "Should we start? [Y|n] "
read yn read yn
yn=${yn:-y} yn=${yn:-y}
if [ "$yn" != "y" ]; then if [ "$yn" != "y" ]; then
@ -58,7 +58,7 @@ echo "* * *"
while [ "$securssh" != "y" ] && [ "$securssh" != "n" ] while [ "$securssh" != "y" ] && [ "$securssh" != "n" ]
do do
echo -n "Securing ssh (disabling root login)? [y\n] " echo -n "Securing ssh (disabling root login)? [y|n] "
read securssh read securssh
# securssh=${securssh:-y} # securssh=${securssh:-y}
done done
@ -120,7 +120,7 @@ echo "* * *"
echo "\033[35;1mVHOST install \033[0m" echo "\033[35;1mVHOST install \033[0m"
while [ "$vh" != "y" ] && [ "$vh" != "n" ] while [ "$vh" != "y" ] && [ "$vh" != "n" ]
do do
echo -n "Should we install a vhost? [y\n] " echo -n "Should we install a vhost? [y|n] "
read vh read vh
# vh=${vh:-y} # vh=${vh:-y}
done done
@ -131,7 +131,7 @@ if [ "$vh" = "y" ]; then
do do
read -p "enter a hostname ? " _host_name read -p "enter a hostname ? " _host_name
if [ "$_host_name" != "" ]; then if [ "$_host_name" != "" ]; then
read -p "is hostname $_host_name correcte [y\n] " validated read -p "is hostname $_host_name correcte [y|n] " validated
if [ "$validated" = "y" ]; then if [ "$validated" = "y" ]; then
break break
else else
@ -191,7 +191,7 @@ echo "* * *"
echo "\033[35;1msetup git repositorie \033[0m" echo "\033[35;1msetup git repositorie \033[0m"
while [ "$gr" != "y" ] && [ "$gr" != "n" ] while [ "$gr" != "y" ] && [ "$gr" != "n" ]
do do
echo -n "Should we install a git repos for $_host_name in $user home? [y\n] " echo -n "Should we install a git repos for $_host_name in $user home? [y|n] "
read gr read gr
done done