From 8c68b398344e0021404fcffeec632ae2f24c0552 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 5 Oct 2021 13:10:01 -0700 Subject: [PATCH] fixed domain config name --- bin/vhost-enable.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/vhost-enable.sh b/bin/vhost-enable.sh index 6295053..77c9738 100755 --- a/bin/vhost-enable.sh +++ b/bin/vhost-enable.sh @@ -110,7 +110,7 @@ if [[ "$macro" == *"VHost"* ]]; then exit 1 fi macro_vhost_line="$macro_vhost_line $subdomain" - vhost_conf="$subdomain.$domain_conf" + vhost_conf="$subdomain.$domain.conf" else echo "subdomain (-o OPTION) not set" exit 1 @@ -179,11 +179,11 @@ if [[ "$macro" == *"HTTPS"* ]]; then fi # create / edit apache conf -echo "$macro_vhost_line" > /etc/apache2/sites-available/$domain_conf +echo "$macro_vhost_line" > /etc/apache2/sites-available/$domain.conf # enable apache conf -if [[ ! -h /etc/apache2/sites-enabled/$domain_conf ]]; then - a2ensite --quiet $domain_conf +if [[ ! -h /etc/apache2/sites-enabled/$domain.conf ]]; then + a2ensite --quiet $domain.conf fi # restart apache