diff options
| -rw-r--r-- | freeipa.spec.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in index 0d2221d09..e19fd2a19 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -506,7 +506,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 # NOTE: systemd specific section if [ $? -eq 0 ]; then - /bin/systemctl try-restart ipa.service >/dev/null 2>&1 || : + /bin/systemctl is-enabled ipa.service >/dev/null 2>&1 + if [ $? -eq 0 ]; then + /bin/systemctl restart ipa.service >/dev/null 2>&1 || : + fi fi # END |
