You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
363 B
Bash
17 lines
363 B
Bash
2 years ago
|
#!/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 <<EOF >final.yaml";
|
||
|
cat template.yaml;
|
||
|
echo "EOF";
|
||
|
) >temp.yaml
|
||
|
. temp.yaml
|
||
|
cat final.yaml
|
||
|
mv final.yaml /server-config/server.yaml
|