#!/bin/bash

TRACK_FILE=/opt/gowww/cloudform/src/public/dist/static/track.config.js

echo 'start replace track data'

sed s+{{TRACK_APP_ID}}+$TRACK_APP_ID+g -i $TRACK_FILE

sed s+{{TRACK_APP_SECRET}}+$TRACK_APP_SECRET+g -i $TRACK_FILE

sed s+{{TRACK_PROJECT}}+$TRACK_PROJECT+g -i $TRACK_FILE

sed s+{{TRACK_STORE}}+$TRACK_STORE+g -i $TRACK_FILE

sed s+{{TRACK_BASE_URL}}+$TRACK_BASE_URL+g -i $TRACK_FILE