aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/setup.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-06 23:11:50 -0300
committerEuAndreh <eu@euandre.org>2019-06-06 23:11:50 -0300
commit3b87f0192440b3569a2994886b99a08d1f9e42c0 (patch)
tree7886c7c2ee0edd114127644568040ae5d3eb81c8 /scripts/ci/setup.sh
parentNotify when backup fails instead od saying nothing (diff)
downloadserver-3b87f0192440b3569a2994886b99a08d1f9e42c0.tar.gz
server-3b87f0192440b3569a2994886b99a08d1f9e42c0.tar.xz
Use ${DOLLAR}{VAR} to double scape bash variable in .env templates
Diffstat (limited to '')
-rwxr-xr-xscripts/ci/setup.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ci/setup.sh b/scripts/ci/setup.sh
index dbbf32a..d9ac70c 100755
--- a/scripts/ci/setup.sh
+++ b/scripts/ci/setup.sh
@@ -28,6 +28,11 @@ export SSH_SERVER_PRIVATE_KEY
SSH_SERVER_PUBLIC_KEY="$(cat ./secrets/ssh/vps-box-server.pub)"
export SSH_SERVER_PUBLIC_KEY
+# Used for keeping bash variables for run-time substituion instead of execution time substitution.
+# Taken from:
+# https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst
+export DOLLAR='$'
+
envsubst < ./ssh.env.conf >> ~/.ssh/config
envsubst < ./hosts.env > ./hosts
envsubst < ./docker-compose.env.yaml > ./docker-compose.yaml