mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Move alpine based image
Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
parent
57d7423253
commit
2b11ded2a2
2 changed files with 0 additions and 0 deletions
13
contrib/docker/alpine/entrypoint.sh
Executable file
13
contrib/docker/alpine/entrypoint.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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 $?
|
Loading…
Add table
Add a link
Reference in a new issue