From bff6253c235e2f1b222be8e73b8f5116961c252b114c4b5b772cb808e9ec0114 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 14 Nov 2014 16:08:48 +0000 Subject: [PATCH] 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 --- boinc-client.changes | 5 +++++ boinc-client.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/boinc-client.changes b/boinc-client.changes index f621f4e..3c564e4 100644 --- a/boinc-client.changes +++ b/boinc-client.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 09 01:44:00 UTC 2014 - Led + +- fix bashism in pre script + ------------------------------------------------------------------- Tue Jun 17 13:39:32 UTC 2014 - tchvatal@suse.com diff --git a/boinc-client.spec b/boinc-client.spec index 428f480..6eed872 100644 --- a/boinc-client.spec +++ b/boinc-client.spec @@ -359,7 +359,7 @@ install -dm0755 %{buildroot}%{_var}/lib/boinc %{_sbindir}/useradd -c "BOINC Client" -d "%{_localstatedir}/lib/boinc" \ -g boinc -r -s /sbin/nologin boinc 2>/dev/null || : 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 fi fi