mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix escaping in mesos-slave command line
This commit is contained in:
parent
09cf38e9a8
commit
ec69cb22bd
@ -34,12 +34,12 @@ mesosslave:
|
|||||||
- bash
|
- bash
|
||||||
- -xc
|
- -xc
|
||||||
- >
|
- >
|
||||||
NAME=$(cut -f2 -d/ <<<$MESOSMASTER1_NAME) &&
|
NAME=$(cut -f2 -d/ <<<${MESOSMASTER1_NAME}) &&
|
||||||
N=${NAME##*_} &&
|
N=${NAME##*_} &&
|
||||||
DOCKER_NETWORK_OFFSET=0.0.$N.0
|
DOCKER_NETWORK_OFFSET=0.0.${N}.0
|
||||||
exec wrapdocker mesos-slave
|
exec wrapdocker mesos-slave
|
||||||
--work_dir="/var/tmp/mesos/$N"
|
--work_dir="/var/tmp/mesos/${N}"
|
||||||
--attributes=rack:$N\\;gen:201$N
|
--attributes="rack:${N};gen:201${N}"
|
||||||
--hostname=$(getent hosts mesosslave | cut -d' ' -f1 | sort -u | tail -1)
|
--hostname=$(getent hosts mesosslave | cut -d' ' -f1 | sort -u | tail -1)
|
||||||
command: ~
|
command: ~
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user