1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
set -eux
relation-set host=`unit-get private-address`
#unbind redis from localhost to accept remote log input
if [ ! -f /etc/redis/redis.conf.bak ]; then
sed -i.bak s/bind\ 127.0.0.1/#bind\ 127.0.0.1/g /etc/redis/redis.conf
service redis-server restart
fi
|