Prevent contrib/docker/entrypoint.sh script from generating a config readable by everyone

This commit is contained in:
mirefly42 2025-05-02 17:08:02 +07:00
parent ed0dc0d115
commit 39711d4c87

View file

@ -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"