Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for CentOS 6 compatibility

Spec should now build on CentOS 5.7 and CentOS 6.2
  • Loading branch information...
commit f2bb9878a205d317b99d86d1170e29648e32b6f3 1 parent 2d7fd6d
@martijn martijn authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/redis.spec
View
8 spec/redis.spec
@@ -1,7 +1,7 @@
%define pid_dir %{_localstatedir}/run/redis
%define pid_file %{pid_dir}/redis.pid
%define redis_ver 2.4.8
-%define redis_rel 1
+%define redis_rel 2
Summary: Redis is an open source, advanced key-value store
Name: redis
@@ -71,7 +71,7 @@ mkdir -p %{buildroot}%{_bindir}
%{__install} -p -d -m 0755 %{buildroot}%{pid_dir}
%pre
-/usr/sbin/useradd -c 'Redis' -u 499 -s /bin/false -r -d %{_localstatedir}/lib/redis redis 2> /dev/null || :
+/usr/sbin/useradd -c 'Redis' -u 496 -s /bin/false -r -d %{_localstatedir}/lib/redis redis
%preun
if [ $1 = 0 ]; then
@@ -109,6 +109,10 @@ fi
%dir %attr(0755,redis,redis) %{_localstatedir}/run/redis
%changelog
+* Fri Feb 27 2012 Martijn Storck <martijn@bluerail.nl> 2.4.8-2
+- Change uid for CentOS 6 compatibility
+- Don't suppress useradd warnings
+
* Fri Feb 27 2012 Martijn Storck <martijn@bluerail.nl> 2.4.8-1
- Upgrade to 2.4.8
- Update description
Please sign in to comment.
Something went wrong with that request. Please try again.