Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 34ec56578fb7ccf6d5da94bfac406a18 > scriptlet

freeipa-server-2.2.2-2.fc17.i686.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
# Use systemd scheme
    /bin/systemctl --quiet stop ipa.service || :
    /bin/systemctl --quiet disable ipa.service || :
fi

POSTIN

/bin/sh
# Use systemd scheme, update systemd as service units have changed
    /bin/systemctl --system daemon-reload 2>&1 || :
if [ $1 -gt 1 ] ; then
    # When upgrade is performed from SysV to systemd, ipa.service will be inactive
    # due to https://bugzilla.redhat.com/show_bug.cgi?id=752846
    # FreeIPA existing setup cannot be used without upgrade script
    # Note also it is now safe to run this script against working FreeIPA install
    # after it has been migrated to systemd setup
    /usr/libexec/freeipa-systemd-upgrade || :
    /usr/sbin/ipa-upgradeconfig || :
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
# Use systemd scheme
    /bin/systemctl --quiet is-active ipa.service >/dev/null && \
    /bin/systemctl try-restart ipa.service >/dev/null 2>&1 || :
fi

POSTTRANS

/bin/sh
# This must be run in posttrans so that updates from previous
# execution that may no longer be shipped are not applied.
/usr/sbin/ipa-ldap-updater --upgrade >/dev/null 2>&1 || :