Fixed ssl support for Apache2 for test...

This commit is contained in:
ZAKS Web 2025-05-07 08:39:21 +02:00
parent 1852db0899
commit effa8607dd
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
1.02
1.02.01

View File

@ -1,6 +1,6 @@
#!/bin/bash
INSTALLERVERSION="1.02"
INSTALLERVERSION="1.02.01"
if [[ $(whoami) != "root" ]]; then
echo "You must be root to run this script!"
@ -1121,6 +1121,7 @@ fi
if [[ $p -lt 5 ]]; then
echo "Testing that Apache2 is accessible from the web..."
a2enmod ssl > /dev/null 2>> installer-errors.log && systemctl restart apache2 > /dev/null 2>> installer-errors.log || failMsg "Apache2 failed to enable module ssl..."
a2ensite default-ssl.conf > /dev/null 2>> installer-errors.log && systemctl reload apache2 > /dev/null 2>> installer-errors.log || failMsg "Apache2 failed to activate default SSL configuration..."
json=$(curl -s "http://api.zaks.web.za/testhttp")
httpresult=$(echo "$json" | jq -r .http.result)