mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-05-20 17:05:08 +03:00
Prevent freebsd service from generating a config readable by everyone
This commit is contained in:
parent
3c226e26ec
commit
e7c0bd20dc
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ yggdrasil_start()
|
|||
|
||||
test ! -f /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}$')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue