yggdrasil-go/contrib/docker/alpine/entrypoint.sh
Yan Minari ed569e4578
CI: Fix dockerfiles
Signed-off-by: Yan Minari <yangm97@gmail.com>
2019-08-04 20:17:15 -03:00

15 lines
270 B
Bash
Executable file

#!/usr/bin/env sh
set -e
CONF_DIR="/etc/yggdrasil-network"
mkdir -p $CONF_DIR
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 $?