summaryrefslogtreecommitdiffstats
path: root/ci/deploy/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/deploy/deploy.sh')
-rwxr-xr-xci/deploy/deploy.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh
index 9360da85..2b6843c6 100755
--- a/ci/deploy/deploy.sh
+++ b/ci/deploy/deploy.sh
@@ -190,10 +190,11 @@ function update_dha_by_pdf()
fi
if [ -z $(awk "BEGIN{}(/daisy_ip/){print NR}" $tmpfile) ]; then
line=$(awk "BEGIN{}(/daisy_gateway/){print NR}" $tmpfile)
- sed -i "${line}b\daisy_ip: $INSTALLER_IP" $tmpfile
+ sed -i "${line} i\daisy_ip: $INSTALLER_IP" $tmpfile
fi
if [ $? -ne 0 ]; then
echo "Cannot write INSTALLER_IP to config file, use original deploy.yml !"
+ rm $tmpfile
return
fi
cp ${tmpfile} ${DHA_CONF}