Accepting request 260560 from home:Ledest:misc

fix bashisms in pre script

OBS-URL: https://build.opensuse.org/request/show/260560
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=54
This commit is contained in:
Kristyna Streitova 2014-11-11 17:17:40 +00:00 committed by Git OBS Bridge
parent f16b537690
commit e579dc79d6
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 23:34:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in pre script
-------------------------------------------------------------------
Mon Jul 28 09:10:30 UTC 2014 - mrueckert@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package redis
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -35,8 +35,8 @@ Patch0: %{name}-initscript.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: %{name}-conf.patch
Patch2: redis-enable-bactrace-on-x86-and-ia64-only.patch
BuildRequires: tcl
BuildRequires: procps
BuildRequires: tcl
Requires: logrotate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -92,8 +92,8 @@ make test && true
%endif
%pre
/usr/sbin/groupadd -r %{name} &>/dev/null || :
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "User for Redis key-value store" -d %{_data_dir} %{name} &>/dev/null || :
/usr/sbin/groupadd -r %{name} >/dev/null 2>&1 || :
/usr/sbin/useradd -g %{name} -s /bin/false -r -c "User for Redis key-value store" -d %{_data_dir} %{name} >/dev/null 2>&1 || :
%post
%fillup_and_insserv %{name}