Remove superfluous restart or stop of the cifs service; (bnc#804822).

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=83
This commit is contained in:
Lars Müller 2013-02-21 10:39:35 +00:00 committed by Git OBS Bridge
parent c968a8f063
commit 93408d2b1e
2 changed files with 2 additions and 25 deletions

View File

@ -1,7 +1,7 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 20 21:30:43 UTC 2013 - lmuelle@suse.com Wed Feb 21 10:34:55 UTC 2013 - lmuelle@suse.com
- Restart or stop the cifs service only if it is installed; (bnc#804822). - Remove superfluous restart or stop of the cifs service; (bnc#804822).
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 23 11:06:31 UTC 2013 - lmuelle@suse.com Wed Jan 23 11:06:31 UTC 2013 - lmuelle@suse.com

View File

@ -113,34 +113,11 @@ install -m 644 -p contrib/request-key.d/cifs.spnego.conf %{buildroot}%{_sysconfd
%fdupes ${RPM_BUILD_ROOT} %fdupes ${RPM_BUILD_ROOT}
%endif %endif
%preun
if [ -x %{initdir}/cifs ]; then
%if 0%{?suse_version}
%{stop_on_removal cifs}
%else
if [ $1 = 0 ] ; then
test -x /sbin/chkconfig && /sbin/chkconfig --del cifs
fi
%endif
fi
exit 0
%post %post
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
exit 0 exit 0
%postun %postun
if [ -x %{initdir}/cifs ]; then
%if 0%{?suse_version}
%{restart_on_update cifs}
%{insserv_cleanup}
%else
if [ "$1" -ge "1" ]; then
%{initdir}/cifs restart >/dev/null
fi
%endif
fi
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
exit 0 exit 0