From 6ed920949b4ce2660228c4acc0c4e35f83f0d800 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 4 Sep 2020 19:35:32 -0400 Subject: add fortune --- selfpublish.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/selfpublish.sh b/selfpublish.sh index 6bd4a88..1029e7f 100644 --- a/selfpublish.sh +++ b/selfpublish.sh @@ -51,7 +51,7 @@ control_file() { cat <= 2.4.46), libssl1.1 (>= 1.1.1d) +Depends: apache2 (>= 2.4.46), libssl1.1 (>= 1.1.1d), fortune Description: selfpublish.sh dependency package This package depends on the dependencies of the selfpublish.sh script, and is installed by that @@ -237,6 +237,18 @@ install_self_to_site() fi } +install_header_to_site() +{ + cat > "$SITE_DIR"/public_html/HEADER.html < +Fortunately, + + + +EOF + chmod +x "$SITE_DIR"/public_html/HEADER.html +} + check_tls() { curl -s -S -I https://"$1" >/dev/null @@ -244,7 +256,7 @@ check_tls() equivocate -APACHE_MODULES='status md rewrite ssl include' +APACHE_MODULES='status md rewrite ssl include cgi' APACHE_SITE_DIRS='logs public_html' AUTH_TYPE=$(path_fragment_to_ssh_keytag "${1:-$DEFAULT_AUTH_TYPE}") @@ -271,6 +283,7 @@ then systemctl reload apache2 || systemctl restart apache2 else install_self_to_site + install_header_to_site fi check_tls "$DOMAIN" -- cgit v1.2.3