Restart or stop cifs service only if it is installed; (bnc#804822).

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=81
This commit is contained in:
Lars Müller 2013-02-20 21:36:53 +00:00 committed by Git OBS Bridge
parent 91538d26d4
commit 2d90301a2b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 20 21:30:43 UTC 2013 - lmuelle@suse.com
- Restart or stop cifs service only if it is installed; (bnc#804822).
-------------------------------------------------------------------
Wed Jan 23 11:06:31 UTC 2013 - lmuelle@suse.com

View File

@ -114,6 +114,7 @@ install -m 644 -p contrib/request-key.d/cifs.spnego.conf %{buildroot}%{_sysconfd
%endif
%preun
if [ -x %{initdir}/cifs ]; then
%if 0%{?suse_version}
%{stop_on_removal cifs}
%else
@ -121,6 +122,7 @@ if [ $1 = 0 ] ; then
test -x /sbin/chkconfig && /sbin/chkconfig --del cifs
fi
%endif
fi
exit 0
@ -129,6 +131,7 @@ exit 0
exit 0
%postun
if [ -x %{initdir}/cifs ]; then
%if 0%{?suse_version}
%{restart_on_update cifs}
%{insserv_cleanup}
@ -137,6 +140,7 @@ if [ "$1" -ge "1" ]; then
%{initdir}/cifs restart >/dev/null
fi
%endif
fi
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
exit 0