Fixed oopsie and added msg's
This commit is contained in:
@@ -534,8 +534,8 @@ for val1 in ${option[*]}; do
|
||||
done
|
||||
|
||||
|
||||
msg " Setting up SSL" 8 78
|
||||
if [ $sslenable = 1 ]; then
|
||||
msg " Setting up SSL" 8 78
|
||||
if [ $domainwww = 1 ]; then
|
||||
certbot --"$webserv" -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
||||
elif [ $domainwww = 0 ]; then
|
||||
@@ -550,7 +550,7 @@ sed -i -e 's/DOMAINname/'$domain'/' -e 's/CONFname/'$domain'/' -e 's/DomainWWW/'
|
||||
wget -q -t7 "$repo"/raw/branch/"$branch"/Scripts/EnableSSL.sh -O ~/activateSSL-Backend.sh
|
||||
sed -i -e 's/DOMAINname/'$hostname'/' -e 's/CONFname/'Backend'/' -e 's/DomainWWW/'0'/' -e 's/Email/'$email'/' -e 's/WebServer/'$webserv'/' ~/activateSSL-Backend.sh
|
||||
|
||||
#Configuring CMS
|
||||
msg " Configuring CMS"
|
||||
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/CMS/"$CMS"/conf.sh; then
|
||||
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CMS/"$CMS"/conf.sh)
|
||||
fi
|
||||
@@ -579,4 +579,4 @@ systemctl reload sshd fail2ban postfix postfix@-
|
||||
##-------##
|
||||
|
||||
msg " Done installing!"
|
||||
for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done
|
||||
for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; done
|
||||
Reference in New Issue
Block a user