mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 08:59:57 -06:00
server.postrm: Clean logs on purge and disable apache modules on remove/purge.
This commit is contained in:
1 parent
a59df18572
commit
e4390c363e
2 files changed
+44
No files matched your search
Vendored
+2
@@ -25,6 +25,8 @@ freeipa (4.1.4-1) UNRELEASED; urgency=medium
|
||||
* server.postinst: Run ipa-ldap-updater and ipa-upgradeconfig on
|
||||
postinst.
|
||||
* Revert DNSSEC changes to schema and ACI, makes upgrade tools fail.
|
||||
* server.postrm: Clean logs on purge and disable apache modules on
|
||||
remove/purge.
|
||||
|
||||
-- Timo Aaltonen <tjaalton@debian.org> Thu, 02 Apr 2015 13:16:49 +0300
|
||||
|
||||
|
||||
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
remove|purge)
|
||||
if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
|
||||
if [ -e /etc/apache2/mods-enabled/auth_kerb.load ]; then
|
||||
apache2_invoke dismod auth_kerb || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/authz_user.load ]; then
|
||||
apache2_invoke dismod authz_user || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/deflate.load ]; then
|
||||
apache2_invoke dismod deflate || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/expires.load ]; then
|
||||
apache2_invoke dismod expires || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/headers.load ]; then
|
||||
apache2_invoke dismod headers || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/proxy.load ]; then
|
||||
apache2_invoke dismod proxy || exit $?
|
||||
fi
|
||||
if [ -e /etc/apache2/mods-enabled/rewrite.load ]; then
|
||||
apache2_invoke dismod rewrite || exit $?
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
case "$1" in
|
||||
purge)
|
||||
rm -f \
|
||||
/var/log/ipareplica-conncheck.log \
|
||||
/var/log/ipareplica-install.log \
|
||||
/var/log/ipaserver-install.log \
|
||||
/var/log/ipaserver-uninstall.log \
|
||||
/var/log/ipaupgrade.log
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user