Create 14-7-init.sh

This commit is contained in:
Brendan Burns
2017-08-19 22:08:28 -07:00
committed by GitHub
parent 5e51100298
commit 37c864e965

6
14-7-init.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [[ ${HOSTNAME} == 'redis-0' ]]; then
redis-server /redis-config/master.conf
else
redis-server /redis-config/slave.conf
fi