summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--freeipa.spec.in2
-rw-r--r--ipaserver/install/ipa_server_upgrade.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 415a875fa..7e1ad4615 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -536,7 +536,7 @@ fi
%posttrans server
# 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 || echo "IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually."
+/usr/sbin/ipa-server-upgrade --quiet >/dev/null || :
# Restart IPA processes. This must be also run in postrans so that plugins
# and software is in consistent state
diff --git a/ipaserver/install/ipa_server_upgrade.py b/ipaserver/install/ipa_server_upgrade.py
index d0a839d0a..2ebdf9185 100644
--- a/ipaserver/install/ipa_server_upgrade.py
+++ b/ipaserver/install/ipa_server_upgrade.py
@@ -50,4 +50,9 @@ class ServerUpgrade(admintool.AdminTool):
raise admintool.ScriptError(str(e))
def handle_error(self, exception):
+ if not isinstance(exception, SystemExit):
+ # do not log this message when ipa is not installed
+ self.log.error("IPA server upgrade failed: Inspect "
+ "/var/log/ipaupgrade.log and run command "
+ "ipa-server-upgrade manually.")
return installutils.handle_error(exception, self.log_file_name)