imporved gitbarrerpo.sh

This commit is contained in:
Bachir Soussi Chiadmi
2018-04-07 17:09:27 +02:00
parent a587dc0847
commit 3c238f0e4d
2 changed files with 105 additions and 73 deletions

View File

@@ -29,9 +29,9 @@ if [ "$vh" = "y" ]; then
while [ "$_domain" = "" ]
do
read -p "enter a hostname ? " _domain
read -p "enter a domain name ? " _domain
if [ "$_domain" != "" ]; then
read -p "is hostname $_domain correcte [y|n] " validated
read -p "is domain $_domain correcte [y|n] " validated
if [ "$validated" = "y" ]; then
break
else
@@ -50,7 +50,7 @@ if [ "$vh" = "y" ]; then
# ask for let's encrypt
while [ "$_letsencrypt" != "yes" ] && [ "$_letsencrypt" != "no" ]
do
echo -e "Let's encrypt"
echo -e "\033[35;1mLet's encrypt \033[0m"
echo -e "Let's encrypt needs a public registered domain name with proper DNS records ( A records or CNAME records for subdomains pointing to your server)."
echo -n "Should we install let's encrypt certificate with $_domain? [yes|no] "
read _letsencrypt