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