Skip to content
Snippets Groups Projects
Commit c5cf58ed authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

.

parent 1ed373a0
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ spec:
- "sh"
- "-c"
- "NODEID=$(echo -n $HOSTNAME | sed 's/.*\\-\\([0-9]\\+\\)$/\\1/g');
cat /templates/redis.template.conf | sed \"s/\[\[NODEID\]\]/${NODEID}/g\" >/data/redis.conf;
cat /templates/sentinel.template.conf | sed \"s/\[\[NODEID\]\]/${NODEID}/g\" >/data/sentinel.conf;
cat /templates/redis.template.conf | sed \"s/\\[\\[NODEID\\]\\]/${NODEID}/g\" >/data/redis.conf;
cat /templates/sentinel.template.conf | sed \"s/\\[\\[NODEID\]\\]/${NODEID}/g\" >/data/sentinel.conf;
echo '' >>/data/redis.conf;
if [ \"$NODEID\" != '0' ]; then
echo 'slaveof osuredis-{{.Values.appName}}-0.{{.Release.Namespace}}.svc.cluster.local 6379' >>/data/redis.conf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment