Skip to content

Commit

Permalink
Correct allignment of the code indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bincy Daniel authored and Bincy Daniel committed Mar 6, 2023
1 parent f048f60 commit 1109eef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions web/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ then
echo "Enabling Instana EUM"
result=$(curl -kv -s --connect-timeout 10 "$INSTANA_EUM_REPORTING_URL" 2>&1 | grep "301 Moved Permanently")
if [ -n "$result" ];
then
echo '301 Moved Permanently found!'
[[ "${INSTANA_EUM_REPORTING_URL}" != */ ]] && INSTANA_EUM_REPORTING_URL="${INSTANA_EUM_REPORTING_URL}/"
sed -i "s|INSTANA_EUM_KEY|$INSTANA_EUM_KEY|" $BASE_DIR/eum-tmpl.html
sed -i "s|INSTANA_EUM_REPORTING_URL|$INSTANA_EUM_REPORTING_URL|" $BASE_DIR/eum-tmpl.html
cp $BASE_DIR/eum-tmpl.html $BASE_DIR/eum.html
then
echo '301 Moved Permanently found!'
[[ "${INSTANA_EUM_REPORTING_URL}" != */ ]] && INSTANA_EUM_REPORTING_URL="${INSTANA_EUM_REPORTING_URL}/"
sed -i "s|INSTANA_EUM_KEY|$INSTANA_EUM_KEY|" $BASE_DIR/eum-tmpl.html
sed -i "s|INSTANA_EUM_REPORTING_URL|$INSTANA_EUM_REPORTING_URL|" $BASE_DIR/eum-tmpl.html
cp $BASE_DIR/eum-tmpl.html $BASE_DIR/eum.html
else
echo "Go with the user input"
sed -i "s|INSTANA_EUM_KEY|$INSTANA_EUM_KEY|" $BASE_DIR/eum-tmpl.html
sed -i "s|INSTANA_EUM_REPORTING_URL|$INSTANA_EUM_REPORTING_URL|" $BASE_DIR/eum-tmpl.html
cp $BASE_DIR/eum-tmpl.html $BASE_DIR/eum.html
echo "Go with the user input"
sed -i "s|INSTANA_EUM_KEY|$INSTANA_EUM_KEY|" $BASE_DIR/eum-tmpl.html
sed -i "s|INSTANA_EUM_REPORTING_URL|$INSTANA_EUM_REPORTING_URL|" $BASE_DIR/eum-tmpl.html
cp $BASE_DIR/eum-tmpl.html $BASE_DIR/eum.html
fi

else
Expand Down

0 comments on commit 1109eef

Please sign in to comment.