mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-21 15:05:21 +00:00
Creating entrypoint.sh to /contrib/docker/
This commit is contained in:
parent
8b7b3452cf
commit
80b876d21d
13
contrib/docker/entrypoint.sh
Normal file
13
contrib/docker/entrypoint.sh
Normal file
@ -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 $?
|
Loading…
Reference in New Issue
Block a user