diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2013-07-01 12:19:01 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2013-07-02 09:08:21 -0400 |
commit | 68a5d5fa49e2014a7a28fd3fd90531bdea6c2931 (patch) | |
tree | 4a28d115d686b08b23fdddb1c1e61c0c51c41c53 | |
parent | 5fe91dca8b06931a77d2a69c0d6d701b4f32f207 (diff) | |
download | sssd-68a5d5fa49e2014a7a28fd3fd90531bdea6c2931.tar.gz sssd-68a5d5fa49e2014a7a28fd3fd90531bdea6c2931.tar.xz sssd-68a5d5fa49e2014a7a28fd3fd90531bdea6c2931.zip |
Move pre and post scripts to sssd-common
-rw-r--r-- | contrib/sssd.spec.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index bee939092..fd19f7cc9 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -718,20 +718,20 @@ rm -rf $RPM_BUILD_ROOT %if (0%{?use_systemd} == 1) # systemd -%post +%post common if [ $1 -eq 1 ] ; then # Initial installation /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi -%preun +%preun common if [ $1 -eq 0 ] ; then # Package removal, not upgrade /bin/systemctl --no-reload disable sssd.service > /dev/null 2>&1 || : /bin/systemctl stop sssd.service > /dev/null 2>&1 || : fi -%postun +%postun common /bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ $1 -ge 1 ] ; then # Package upgrade, not uninstall @@ -752,14 +752,14 @@ fi /bin/systemctl try-restart sssd.service >/dev/null 2>&1 || : %else # sysv -%post +%post common /sbin/chkconfig --add %{servicename} if [ $1 -ge 1 ] ; then /sbin/service %{servicename} condrestart 2>&1 > /dev/null fi -%preun +%preun common if [ $1 = 0 ]; then /sbin/service %{servicename} stop 2>&1 > /dev/null /sbin/chkconfig --del %{servicename} |