mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-05-20 08:55:06 +03:00
Prevent contrib/docker/entrypoint.sh script from generating a config readable by everyone
This commit is contained in:
parent
ed0dc0d115
commit
39711d4c87
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ CONF_DIR="/etc/yggdrasil-network"
|
||||||
|
|
||||||
if [ ! -f "$CONF_DIR/config.conf" ]; then
|
if [ ! -f "$CONF_DIR/config.conf" ]; then
|
||||||
echo "generate $CONF_DIR/config.conf"
|
echo "generate $CONF_DIR/config.conf"
|
||||||
yggdrasil --genconf > "$CONF_DIR/config.conf"
|
(umask 037 && yggdrasil --genconf > "$CONF_DIR/config.conf")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yggdrasil --useconf < "$CONF_DIR/config.conf"
|
yggdrasil --useconf < "$CONF_DIR/config.conf"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue