Closed insekticid closed 6 years ago
thanks for the contribution @insekticid
would you be able to change this line
sed -i "s/^slaveof/#slaveof/g" /usr/local/etc/redis/redis.conf
to
sed -i -E "s/^ *slaveof +([^ ]*)$/#slaveof \1/g" /usr/local/etc/redis/redis.conf
Cheers
disable slaveof on new master