Skip to content
Snippets Groups Projects
Commit 699b56d0 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed a bug in conf initialization.

parent 440c035d
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then ...@@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then
if ( cat "/root/envsetup/conf.sh" | grep "MS_ID" >/dev/null ); 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 sed -i "s@^MS_ID=.*@MS_ID='${MS_ID}'@" /root/envsetup/conf.sh
else else
echo "MS_ID='${MS_ID}'" > /root/envsetup/conf.sh echo "MS_ID='${MS_ID}'" >> /root/envsetup/conf.sh
fi fi
fi fi
if [ "${MS_API_KEY}" = "" ]; then if [ "${MS_API_KEY}" = "" ]; then
...@@ -17,7 +17,7 @@ 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 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 sed -i "s@^MS_API_KEY=.*@MS_API_KEY='${MS_API_KEY}'@" /root/envsetup/conf.sh
else 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
fi fi
if [ "${MS_SECRET}" = "secret" ]; then if [ "${MS_SECRET}" = "secret" ]; then
...@@ -25,7 +25,7 @@ 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 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 sed -i "s@^MS_SECRET=.*@MS_SECRET='${MS_SECRET}'@" /root/envsetup/conf.sh
else else
echo "MS_SECRET='${MS_SECRET}'" > /root/envsetup/conf.sh echo "MS_SECRET='${MS_SECRET}'" >> /root/envsetup/conf.sh
fi fi
fi fi
# Worker IP for whitelist # Worker IP for whitelist
...@@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then ...@@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then
if ( cat "/root/envsetup/conf.sh" | grep "CELERITY_WORKER_IP" >/dev/null ); 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 sed -i "s@^CELERITY_WORKER_IP=.*@CELERITY_WORKER_IP='${CELERITY_WORKER_IP}'@" /root/envsetup/conf.sh
else 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
fi fi
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