From 80b876d21d1b8077e1fce2b23fd1eed8d587e6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 3 Dec 2018 05:58:24 +0200 Subject: [PATCH] Creating entrypoint.sh to /contrib/docker/ --- contrib/docker/entrypoint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/docker/entrypoint.sh diff --git a/contrib/docker/entrypoint.sh b/contrib/docker/entrypoint.sh new file mode 100644 index 00000000..f1a9d3e5 --- /dev/null +++ b/contrib/docker/entrypoint.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +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 $?