File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
mkdir -p /nodes
4
4
touch /nodes/nodemap
5
- if [ -z ${START_PORT} ]; then
5
+ if [ -z ${START_PORT} ]; then
6
6
START_PORT=16379
7
7
fi
8
- if [ -z ${END_PORT} ]; then
8
+ if [ -z ${END_PORT} ]; then
9
9
END_PORT=16384
10
10
fi
11
11
if [ ! -z " $3 " ]; then
38
38
fi
39
39
echo 127.0.0.1:$PORT >> /nodes/nodemap
40
40
done
41
- echo yes | redis-cli --cluster create $( seq -f 127.0.0.1:%g ${START_PORT} ${END_PORT} ) --cluster-replicas 1
41
+ if [ -z " ${REDIS_PASSWORD} " ]; then
42
+ echo yes | redis-cli --cluster create $( seq -f 127.0.0.1:%g ${START_PORT} ${END_PORT} ) --cluster-replicas 1
43
+ else
44
+ echo yes | redis-cli -a ${REDIS_PASSWORD} --cluster create $( seq -f 127.0.0.1:%g ${START_PORT} ${END_PORT} ) --cluster-replicas 1
45
+ fi
42
46
tail -f /redis.log
You can’t perform that action at this time.
0 commit comments