mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
{server,client}.postinst: Migrate checks to python3.
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
||||
freeipa (4.8.1-2) UNRELEASED; urgency=medium
|
||||
|
||||
* {server,client}.postinst: Migrate checks to python3.
|
||||
|
||||
-- Timo Aaltonen <tjaalton@debian.org> Sun, 08 Sep 2019 23:58:09 +0300
|
||||
|
||||
freeipa (4.8.1-1) experimental; urgency=medium
|
||||
|
||||
* New upstream release.
|
||||
|
||||
2
debian/freeipa-client.postinst
vendored
2
debian/freeipa-client.postinst
vendored
@@ -5,7 +5,7 @@ LOGFILE=/var/log/ipaclient-upgrade.log
|
||||
|
||||
if [ "$1" = configure ]; then
|
||||
if [ -f /etc/ipa/nssdb/cert8.db ]; then
|
||||
python2 -c 'from ipaclient.install.client import update_ipa_nssdb; update_ipa_nssdb()' \
|
||||
python3 -c 'from ipaclient.install.client import update_ipa_nssdb; update_ipa_nssdb()' \
|
||||
> $LOGFILE 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
4
debian/freeipa-server.postinst
vendored
4
debian/freeipa-server.postinst
vendored
@@ -94,8 +94,8 @@ if [ "$1" = configure ]; then
|
||||
fi
|
||||
|
||||
# check if IPA is set up
|
||||
is_configured=`python2 -c 'from ipaserver.install import installutils; print "yes" if installutils.is_ipa_configured() else "no";'`
|
||||
if [ $is_configured = yes ]; then
|
||||
is_configured=`python3 -c 'import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);'`
|
||||
if [ $is_configured ]; then
|
||||
echo "Running ipa-server-upgrade..."
|
||||
ipa-server-upgrade --quiet >/dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user