mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
server.postinst: Drop old upgrade rules.
This commit is contained in:
parent
2b5cb6c301
commit
7bba5e75bb
19
debian/freeipa-server.postinst
vendored
19
debian/freeipa-server.postinst
vendored
@ -17,25 +17,6 @@ if [ "$1" = configure ]; then
|
||||
ipaapi > $OUT
|
||||
fi
|
||||
|
||||
# fix upgrade
|
||||
if dpkg --compare-versions "$2" lt "4.7.0~pre2-1"; then
|
||||
# mod_nss needs to be disabled before mod_ssl is enabled
|
||||
if [ -e /etc/apache2/mods-enabled/nss.load ]; then
|
||||
. /usr/share/apache2/apache2-maintscript-helper
|
||||
apache2_invoke dismod nss || exit $?
|
||||
# and if that's not enough, just remove the links to be sure
|
||||
rm /etc/apache2/mods-enabled/nss.load /etc/apache2/mods-enabled/nss.conf
|
||||
fi
|
||||
|
||||
# this is new in tmpfiles.d/ipa.conf, need to create it here
|
||||
# for the upgrader
|
||||
if [ ! -e /var/run/ipa/ccaches ]; then
|
||||
mkdir /var/run/ipa/ccaches
|
||||
chown ipaapi:ipaapi /var/run/ipa/ccaches
|
||||
chmod 770 /var/run/ipa/ccaches
|
||||
fi
|
||||
fi
|
||||
|
||||
chmod 711 /var/lib/ipa/sysrestore > $OUT || true
|
||||
chmod 700 /var/lib/ipa/passwds > $OUT || true
|
||||
chmod 700 /var/lib/ipa/private > $OUT || true
|
||||
|
Loading…
Reference in New Issue
Block a user