diff --git a/22.Initialize_configuration_file/0_setup.sh b/22.Initialize_configuration_file/0_setup.sh index a737add26899ec48aa6922a97541e3d14a108e31..a5a93531f228d20b876b22aba3ba96bdecec2cf1 100755 --- a/22.Initialize_configuration_file/0_setup.sh +++ b/22.Initialize_configuration_file/0_setup.sh @@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then if ( cat "/root/envsetup/conf.sh" | grep "MS_ID" >/dev/null ); then sed -i "s@^MS_ID=.*@MS_ID='${MS_ID}'@" /root/envsetup/conf.sh else - echo "MS_ID='${MS_ID}'" > /root/envsetup/conf.sh + echo "MS_ID='${MS_ID}'" >> /root/envsetup/conf.sh fi fi if [ "${MS_API_KEY}" = "" ]; then @@ -17,7 +17,7 @@ if [ "${MS_API_KEY}" = "" ]; then if ( cat "/root/envsetup/conf.sh" | grep "MS_API_KEY" >/dev/null ); then sed -i "s@^MS_API_KEY=.*@MS_API_KEY='${MS_API_KEY}'@" /root/envsetup/conf.sh else - echo "MS_API_KEY='${MS_API_KEY}'" > /root/envsetup/conf.sh + echo "MS_API_KEY='${MS_API_KEY}'" >> /root/envsetup/conf.sh fi fi if [ "${MS_SECRET}" = "secret" ]; then @@ -25,7 +25,7 @@ if [ "${MS_SECRET}" = "secret" ]; then if ( cat "/root/envsetup/conf.sh" | grep "MS_SECRET" >/dev/null ); then sed -i "s@^MS_SECRET=.*@MS_SECRET='${MS_SECRET}'@" /root/envsetup/conf.sh else - echo "MS_SECRET='${MS_SECRET}'" > /root/envsetup/conf.sh + echo "MS_SECRET='${MS_SECRET}'" >> /root/envsetup/conf.sh fi fi # Worker IP for whitelist @@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then if ( cat "/root/envsetup/conf.sh" | grep "CELERITY_WORKER_IP" >/dev/null ); then sed -i "s@^CELERITY_WORKER_IP=.*@CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'@" /root/envsetup/conf.sh else - echo "CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'" > /root/envsetup/conf.sh + echo "CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'" >> /root/envsetup/conf.sh fi fi