summaryrefslogtreecommitdiff
path: root/redis.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-11-16 13:47:03 +0100
committerAndreas Maunz <andreas@maunz.de>2011-11-16 13:47:03 +0100
commit69fa1d589bce1d6b17ea9948cce3cb80a7f84819 (patch)
tree217302164e1b62ec6c135006df77f2eb5a16aa44 /redis.sh
parent28d4c0a14a8f4b66d9d0f03e55097c22280b8fdd (diff)
Added support for OHM port
Diffstat (limited to 'redis.sh')
-rwxr-xr-xredis.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis.sh b/redis.sh
index 2f55539..a670cff 100755
--- a/redis.sh
+++ b/redis.sh
@@ -59,6 +59,10 @@ if ! $REDIS_DONE; then
if ! grep "save 900 1" $REDIS_SERVER_CONF >>$LOG 2>&1 ; then
echo "save 900 1" >> $REDIS_SERVER_CONF 2>$LOG
fi
+
+ if ! grep "port $OHM_PORT" $REDIS_SERVER_CONF >>$LOG 2>&1 ; then
+ echo "port $OHM_PORT" >> $REDIS_SERVER_CONF 2>$LOG
+ fi
fi
if [ ! -f $REDIS_CONF ]; then