summaryrefslogtreecommitdiffstats
path: root/contrib/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2013-07-01 12:19:01 -0400
committerStephen Gallagher <sgallagh@redhat.com>2013-07-02 09:08:10 -0400
commit6df7ec09c17c3be8bfadff125daaf7a5738d1436 (patch)
tree834d622e97d15d14b84b7d818b06b47325d89674 /contrib/sssd.spec.in
parent1e7275d3f075973f868c480dbfbe1219c1885585 (diff)
downloadsssd-6df7ec09c17c3be8bfadff125daaf7a5738d1436.tar.gz
sssd-6df7ec09c17c3be8bfadff125daaf7a5738d1436.tar.xz
sssd-6df7ec09c17c3be8bfadff125daaf7a5738d1436.zip
Move pre and post scripts to sssd-common
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r--contrib/sssd.spec.in10
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}