Browse Source

Support `--server apache2`

Fixes #srvrco/checkssl/issues/21
pull/22/head
Jeroen Wiert Pluimers 7 years ago
parent
commit
085b3e5183
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      checkssl

+ 1
- 1
checkssl View File

@ -317,7 +317,7 @@ if [ $SERVERARG ]; then
debug "getting list of domains from server"
if [ "$STYPE" == "cpanel" ]; then
cut -d":" -f 1 < /etc/userdomains | grep "\." >> "$LIST_OF_DOMAINS"
elif [ "$STYPE" == "ISPconfig" ]; then
elif [ "$STYPE" == "ISPconfig" ] || [ "$STYPE" == "apache2" ]; then
apache2ctl -S | grep namevhost | awk '{print $4}' | sort | uniq >> "$LIST_OF_DOMAINS"
else
echo "unknown server type currently"


Loading…
Cancel
Save