mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Ensure network is online prior to an upgrade
Fedora system upgrades don't necessary require the network to be up. However, we do, so we have to make sure the network is online before performing an upgrade. https://pagure.io/freeipa/issue/7039 Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
committed by
Tomas Krizek
parent
041982f073
commit
a36f2aed63
@@ -1045,6 +1045,10 @@ fi
|
||||
python2 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
# This is necessary for Fedora system upgrades which by default
|
||||
# work with the network being offline
|
||||
/bin/systemctl start network-online.target
|
||||
|
||||
# This must be run in posttrans so that updates from previous
|
||||
# execution that may no longer be shipped are not applied.
|
||||
/usr/sbin/ipa-server-upgrade --quiet >/dev/null || :
|
||||
|
||||
Reference in New Issue
Block a user