This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/build-units
2015-08-18 11:26:57 -07:00

20 lines
372 B
Bash
Executable file

#!/bin/bash -e
mkdir -p deploy
required=(
${DEX_OVERLORD_DB_URL:?"missing"}
${DEX_OVERLORD_KEY_SECRET:?"missing"}
${DEX_WORKER_DB_URL:?"missing"}
${DEX_WORKER_KEY_SECRET:?"missing"}
)
eval "cat <<EOF
$(<static/dex-worker.service.tmpl)
EOF
" 1> deploy/dex-worker.service
eval "cat <<EOF
$(<static/dex-overlord.service.tmpl)
EOF
" 1> deploy/dex-overlord.service