1
0
forked from pool/boinc-client

Accepting request 260422 from home:Ledest:misc

fix bashism in pre script

OBS-URL: https://build.opensuse.org/request/show/260422
OBS-URL: https://build.opensuse.org/package/show/network/boinc-client?expand=0&rev=41
This commit is contained in:
Marcus Meissner 2014-11-14 16:08:48 +00:00 committed by Git OBS Bridge
parent 426b648978
commit bff6253c23
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 01:44:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in pre script
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 17 13:39:32 UTC 2014 - tchvatal@suse.com Tue Jun 17 13:39:32 UTC 2014 - tchvatal@suse.com

View File

@ -359,7 +359,7 @@ install -dm0755 %{buildroot}%{_var}/lib/boinc
%{_sbindir}/useradd -c "BOINC Client" -d "%{_localstatedir}/lib/boinc" \ %{_sbindir}/useradd -c "BOINC Client" -d "%{_localstatedir}/lib/boinc" \
-g boinc -r -s /sbin/nologin boinc 2>/dev/null || : -g boinc -r -s /sbin/nologin boinc 2>/dev/null || :
if [ -f %{_sysconfdir}/sysconfig/%{name} ]; then if [ -f %{_sysconfdir}/sysconfig/%{name} ]; then
if [ "$(grep "BOINC_BOINC_USR" %{_sysconfdir}/sysconfig/boinc-client | grep -v grep >/dev/null; echo $?)" == 1 ]; then if grep "BOINC_BOINC_USR" %{_sysconfdir}/sysconfig/boinc-client | grep -q grep; then
mv -f %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.save mv -f %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/sysconfig/%{name}.save
fi fi
fi fi