From 7850b71e78b07242b464621f80890f3937f4239a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:17:16 +0200 Subject: Enabling default-ssl site by default. Signed-off-by: Daniel Baumann --- debian/apache2.postinst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/apache2.postinst') diff --git a/debian/apache2.postinst b/debian/apache2.postinst index 67a00f3..b02f127 100644 --- a/debian/apache2.postinst +++ b/debian/apache2.postinst @@ -71,6 +71,11 @@ install_default_site() a2ensite -q 000-default fi + if [ ! -L /etc/apache2/sites-enabled/000-default-ssl.conf -a \ + ! -f /etc/apache2/sites-enabled/000-default-ssl.conf ]; then + a2ensite -q 000-default-ssl + fi + touch /var/log/apache2/error.log /var/log/apache2/access.log chown root:adm /var/log/apache2/error.log /var/log/apache2/access.log chmod 0640 /var/log/apache2/error.log /var/log/apache2/access.log -- cgit v1.2.3