Skip to content

Commit

Permalink
NFS didn't see the file changes to spec, makes required directory and…
Browse files Browse the repository at this point in the history
… changes ownership
  • Loading branch information
jstephens committed Jan 17, 2012
1 parent ec2cb89 commit bbba07a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/redis.spec
Expand Up @@ -147,12 +147,15 @@ mkdir -p %{buildroot}%{_bindir}
%{__install} -Dp -m 0755 redis.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/redis
%{__install} -Dp -m 0755 redis.sysv %{buildroot}%{_sysconfdir}/init.d/redis
%{__install} -Dp -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/redis.conf

%{__install} -p -d -m 0755 %{buildroot}%{_localstatedir}/lib/redis
%{__install} -p -d -m 0755 %{buildroot}%{_localstatedir}/log/redis
%{__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 || :
mkdir /var/redis
/bin/chown redis /var/redis

%preun
if [ $1 = 0 ]; then
Expand All @@ -173,6 +176,7 @@ fi

%post
/sbin/chkconfig --add redis
/sbin/service redis start

%clean
%{__rm} -rf %{buildroot}
Expand All @@ -190,9 +194,6 @@ fi
%dir %attr(0755,redis,redis) %{_localstatedir}/run/redis

%changelog
* Mon Jan 16 2012 - fixing compatibility issues with 2.4.6
- upped to 2.4.6 stable

* Tue Jul 13 2010 - jay at causes dot com 2.0.0-rc2
- upped to 2.0.0-rc2

Expand Down

0 comments on commit bbba07a

Please sign in to comment.