#!/bin/bash TOKEN=$(influx auth list --user ${DOCKER_INFLUXDB_INIT_USER_ID} --hide-headers | cut -f 3) export db_url=$INFLUX_HOST export db_org=$DOCKER_INFLUXDB_INIT_ORG_ID export db_token=$TOKEN rm -f temp.yaml ( echo "cat <final.yaml"; cat template.yaml; echo "EOF"; ) >temp.yaml . temp.yaml cat final.yaml mv final.yaml /server-config/server.yaml