yggdrasil-go/contrib/docker/entrypoint.sh

14 lines
250 B
Bash
Raw Permalink Normal View History

2018-12-04 13:00:01 +01:00
#!/usr/bin/env sh
set -e
CONF_DIR="/etc/yggdrasil-network"
if [ ! -f "$CONF_DIR/config.conf" ]; then
echo "generate $CONF_DIR/config.conf"
yggdrasil --genconf > "$CONF_DIR/config.conf"
fi
yggdrasil --useconf < "$CONF_DIR/config.conf"
exit $?