ScuttleBot

scuttlebot / deploy / compose / ergo / entrypoint.sh
Blame History Raw 14 lines
1
#!/bin/sh
2
set -e
3
4
CONFIG_DIR="${ERGO_DATA_DIR:-/ircd}"
5
CONFIG_FILE="${CONFIG_DIR}/ircd.yaml"
6
TEMPLATE="/ergo/ircd.yaml.tmpl"
7
8
mkdir -p "${CONFIG_DIR}"
9
10
# Render template with env var substitution.
11
envsubst < "${TEMPLATE}" > "${CONFIG_FILE}"
12
13
exec ergo run --conf "${CONFIG_FILE}"
14

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button