mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
14 lines
252 B
Bash
14 lines
252 B
Bash
|
#!/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 $?
|