Commit 2e3cc685 authored by Markus Frosch's avatar Markus Frosch 📣

Configure a different port for icinga-redis

Also fix pidfile settings
parent 9bde2f75
Pipeline #7292 failed with stages
in 3 minutes and 23 seconds
......@@ -20,6 +20,7 @@
%global pkg_prefix icinga-
%global src_name redis
%global redis_port 6380
Name: %{?pkg_prefix}redis
Version: 5.0.6
......@@ -137,6 +138,14 @@ sed -i -e 's|^logfile .*$|logfile /var/log/%{name}/redis.log|g' redis.conf
sed -i -e 's|^logfile .*$|logfile /var/log/%{name}/sentinel.log|g' sentinel.conf
sed -i -e 's|^dir .*$|dir /var/lib/%{name}|g' redis.conf
# Update redis port in config
sed -i -e 's|^port .*$|port %{redis_port}|'g redis.conf
sed -i -e 's|^port .*$|port 2%{redis_port}|'g sentinel.conf
# Update PID file in config
sed -i -e 's|^pidfile .*$|pidfile /var/run/%{name}/redis.pid|g' redis.conf
sed -i -e 's|^pidfile .*$|pidfile /var/run/%{name}/redis-sentinel.pid|g' sentinel.conf
# Module API version safety check
api=`sed -n -e 's/#define REDISMODULE_APIVER_[0-9][0-9]* //p' src/redismodule.h`
if test "$api" != "%{redis_modules_abi}"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment