5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-24 16:01:35 +00:00
yggdrasil-go/contrib/docker/entrypoint.sh

14 lines
252 B
Bash
Raw Normal View History

#!/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 $?