server.postinst/postrm: Enable/disable mod_ssl.

This commit is contained in:
Timo Aaltonen 2018-04-06 17:31:43 +03:00
parent 4041786e43
commit 8e0bfb5108
3 changed files with 7 additions and 0 deletions

1
debian/changelog vendored
View File

@ -11,6 +11,7 @@ freeipa (4.7.0~pre1+git20180404-1) UNRELEASED; urgency=medium
* control.server: Bump dogtag dependencies to 10.6.0~.
* control.server: Drop mod-nss from Depends, mod_ssl is used instead.
* enable-mod-nss-during-setup.diff: Dropped, not needed anymore.
* server.postinst/postrm: Enable/disable mod_ssl.
-- Timo Aaltonen <tjaalton@debian.org> Fri, 06 Apr 2018 16:18:42 +0300

View File

@ -64,6 +64,9 @@ if [ "$1" = configure ]; then
if [ ! -e /etc/apache2/mods-enabled/session_cookie.load ]; then
apache2_invoke enmod session_cookie || exit $?
fi
if [ ! -e /etc/apache2/mods-enabled/ssl.load ]; then
apache2_invoke enmod ssl || exit $?
fi
fi
# check if IPA is set up

View File

@ -45,6 +45,9 @@ case "$1" in
if [ -e /etc/apache2/mods-enabled/session_cookie.load ]; then
apache2_invoke dismod session_cookie || exit $?
fi
if [ -e /etc/apache2/mods-enabled/ssl.load ]; then
apache2_invoke dismod ssl || exit $?
fi
fi
;;
esac