Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Haikel Guemar | 317e429f80 | |
Haikel Guemar | 3c8fe4a701 |
|
@ -20,3 +20,4 @@
|
|||
/redis-2.8.17.tar.gz
|
||||
/redis-2.8.18.tar.gz
|
||||
/redis-2.8.19.tar.gz
|
||||
/redis-2.8.21.tar.gz
|
||||
|
|
|
@ -14,10 +14,12 @@ fi
|
|||
# Get the proper config file based on service name
|
||||
CONFIG_FILE="/etc/$SERVICE_NAME.conf"
|
||||
|
||||
# Use awk to retrieve port from config file
|
||||
# Use awk to retrieve host, port from config file
|
||||
HOST=`awk '/^[[:blank:]]*bind/ { print $2 }' $CONFIG_FILE`
|
||||
PORT=`awk '/^[[:blank:]]*port/ { print $2 }' $CONFIG_FILE`
|
||||
|
||||
# Just in case, use default port
|
||||
# Just in case, use default host, port
|
||||
HOST=${HOST:-127.0.0.1}
|
||||
if [ "$SERVICE_NAME" = redis ]; then
|
||||
PORT=${PORT:-6379}
|
||||
else
|
||||
|
@ -25,4 +27,4 @@ else
|
|||
fi
|
||||
|
||||
# shutdown the service properly
|
||||
$REDIS_CLI -p $PORT shutdown
|
||||
$REDIS_CLI -h $HOST -p $PORT shutdown
|
||||
|
|
11
redis.spec
11
redis.spec
|
@ -11,8 +11,8 @@
|
|||
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
|
||||
|
||||
Name: redis
|
||||
Version: 2.8.19
|
||||
Release: 1%{?dist}.1
|
||||
Version: 2.8.21
|
||||
Release: 1%{?dist}
|
||||
Summary: A persistent key-value database
|
||||
License: BSD
|
||||
URL: http://redis.io
|
||||
|
@ -242,6 +242,13 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 04 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.8.21-1
|
||||
- Upstream 2.8.21
|
||||
- Fix Lua sandbox escape and arbitrary code execution (RHBZ #1228331)
|
||||
|
||||
* Thu Mar 26 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.8.19-2
|
||||
- Fix redis-shutdown on multiple NIC setup (RHBZ #1201237)
|
||||
|
||||
* Fri Feb 27 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 2.8.19-1
|
||||
- Upstream 2.8.19 (RHBZ #1175232)
|
||||
- Fix permissions for tmpfiles (RHBZ #1182913)
|
||||
|
|
Loading…
Reference in New Issue