Prevent freebsd service from generating a config readable by everyone

This commit is contained in:
mirefly42 2025-05-02 15:54:59 +07:00
parent 3c226e26ec
commit e7c0bd20dc

View file

@ -33,7 +33,7 @@ yggdrasil_start()
test ! -f /etc/yggdrasil.conf && ( test ! -f /etc/yggdrasil.conf && (
logger -s -t yggdrasil "Generating new configuration file into /etc/yggdrasil.conf" logger -s -t yggdrasil "Generating new configuration file into /etc/yggdrasil.conf"
/usr/local/bin/yggdrasil -genconf > /etc/yggdrasil.conf (umask 037 && /usr/local/bin/yggdrasil -genconf > /etc/yggdrasil.conf)
) )
tap_path="$(cat /etc/yggdrasil.conf | egrep -o '/dev/tap[0-9]{1,2}$')" tap_path="$(cat /etc/yggdrasil.conf | egrep -o '/dev/tap[0-9]{1,2}$')"