summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-10-13 15:26:44 -0400
committerAndrew Cady <d@jerkface.net>2020-10-13 15:26:44 -0400
commit60735b0578f384044b208e5dd456d2b0685ed6cc (patch)
tree5f3090149cde055dc2ef5432cbc4d9fea55e3196
parentff25674ce7704ebbca788e9b2125bc4537bbfcc2 (diff)
use the new name in more places
-rw-r--r--selfpublish.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/selfpublish.sh b/selfpublish.sh
index 64ccd37..f244dbd 100644
--- a/selfpublish.sh
+++ b/selfpublish.sh
@@ -464,7 +464,6 @@ enable_apache_modules()
464 464
465site_conf_template() 465site_conf_template()
466{ 466{
467 HOSTNAME=$(hostname)
468cat <<END 467cat <<END
469<MDomain $DOMAIN> 468<MDomain $DOMAIN>
470 MDContactEmail webmaster@$DOMAIN 469 MDContactEmail webmaster@$DOMAIN
@@ -825,13 +824,13 @@ check_tls()
825 curl -s -S -I https://"$1" >/dev/null 824 curl -s -S -I https://"$1" >/dev/null
826} 825}
827 826
827HOSTNAME=$(hostname)
828DEBDEST=$(realpath .) 828DEBDEST=$(realpath .)
829[ "$NO_EQUIVS" ] || equivocate >&2 829[ "$NO_EQUIVS" ] || equivocate >&2
830 830
831APACHE_MODULES='status md rewrite ssl include cgi' 831APACHE_MODULES='status md rewrite ssl include cgi'
832APACHE_SITE_DIRS='logs public_html' 832APACHE_SITE_DIRS='logs public_html'
833 833
834
835AUTH_TYPE=${1:-$DEFAULT_AUTH_TYPE} 834AUTH_TYPE=${1:-$DEFAULT_AUTH_TYPE}
836AUTH_KEYTAG=$(path_fragment_to_ssh_keytag "$AUTH_TYPE") 835AUTH_KEYTAG=$(path_fragment_to_ssh_keytag "$AUTH_TYPE")
837DYNDNS=$(get_dyndns_domain "$AUTH_KEYTAG") 836DYNDNS=$(get_dyndns_domain "$AUTH_KEYTAG")
@@ -847,7 +846,7 @@ case "$DOMAIN" in
847 exit 1 ;; 846 exit 1 ;;
848esac 847esac
849 848
850check_tls "$DOMAIN" 849check_tls "$HOSTNAME.$DOMAIN"
851tls_result=$? 850tls_result=$?
852 851
853install_apache_vhost 852install_apache_vhost
@@ -862,6 +861,6 @@ else
862 systemctl reload apache2 || systemctl restart apache2 861 systemctl reload apache2 || systemctl restart apache2
863fi 862fi
864 863
865check_tls "$DOMAIN" 864check_tls "$HOSTNAME.$DOMAIN"
866printf '%s\n' "https://$DOMAIN/selfpublish.sh" 865printf '%s\n' "https://$HOSTNAME.$DOMAIN/selfpublish.sh"
867 866