Commit 2272de1f authored by Michael Nikitochkin's avatar Michael Nikitochkin

AWS: Fixed compacting script of cloud init for MacOS

In MacOS there is error during setup a new cluster: ``` + sed -i -e 's/^[[:blank:]]*#.*$//' -e '/^[[:blank:]]*$/d' /sometmpfile sed: -e: No such file or directory ``` Because sed version of MacOS does not support modern features.
parent 90333114
...@@ -895,8 +895,9 @@ function start-master() { ...@@ -895,8 +895,9 @@ function start-master() {
# We're running right up against the 16KB limit # We're running right up against the 16KB limit
# Remove all comment lines and then put back the bin/bash shebang # Remove all comment lines and then put back the bin/bash shebang
sed -i -e 's/^[[:blank:]]*#.*$//' -e '/^[[:blank:]]*$/d' "${KUBE_TEMP}/master-user-data" cat "${KUBE_TEMP}/master-user-data" | sed -e 's/^[[:blank:]]*#.*$//' | sed -e '/^[[:blank:]]*$/d' > "${KUBE_TEMP}/master-user-data.tmp"
sed -i '1i #! /bin/bash' "${KUBE_TEMP}/master-user-data" echo '#! /bin/bash' | cat - "${KUBE_TEMP}/master-user-data.tmp" > "${KUBE_TEMP}/master-user-data"
rm "${KUBE_TEMP}/master-user-data.tmp"
echo "Starting Master" echo "Starting Master"
master_id=$($AWS_CMD run-instances \ master_id=$($AWS_CMD run-instances \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment