Accepting request 260522 from home:Ledest:misc

fix bashisms in pre script

OBS-URL: https://build.opensuse.org/request/show/260522
OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=26
This commit is contained in:
Marcus Meissner 2014-11-10 10:16:36 +00:00 committed by Git OBS Bridge
parent 932efb3134
commit 10c94e9a49
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 19:11:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in pre script
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 23 20:18:46 UTC 2014 - andreas.stieger@gmx.de Mon Jun 23 20:18:46 UTC 2014 - andreas.stieger@gmx.de

View File

@ -110,8 +110,8 @@ make %{?_smp_mflags}
%{__rm} -rf %{buildroot}; %{__rm} -rf %{buildroot};
%pre %pre
/usr/sbin/groupadd -r %{pkg_name} &>/dev/null || : /usr/sbin/groupadd -r %{pkg_name} >/dev/null 2>&1 || :
/usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{home_dir} %{pkg_name} &>/dev/null || : /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{home_dir} %{pkg_name} >/dev/null 2>&1 || :
%if %{with systemd} %if %{with systemd}
%service_add_pre %{pkg_name}.service %service_add_pre %{pkg_name}.service
%endif %endif