community/yggdrasil: prevent generated config from being world-readable

The file contains secrets and thus should not be world-readable.
This commit is contained in:
Kevin Daudt 2023-05-05 20:12:53 +00:00 committed by alice
parent 62a33f24ad
commit 8e588aebcb
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com> # Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=yggdrasil pkgname=yggdrasil
pkgver=0.4.7 pkgver=0.4.7
pkgrel=5 pkgrel=6
pkgdesc="An experiment in scalable routing as an encrypted IPv6 overlay network" pkgdesc="An experiment in scalable routing as an encrypted IPv6 overlay network"
url="https://yggdrasil-network.github.io/" url="https://yggdrasil-network.github.io/"
arch="all" arch="all"

View File

@ -2,5 +2,5 @@
modprobe tun modprobe tun
if [ ! -e "/etc/yggdrasil.conf" ]; then if [ ! -e "/etc/yggdrasil.conf" ]; then
yggdrasil -genconf > /etc/yggdrasil.conf (umask 077; yggdrasil -genconf > /etc/yggdrasil.conf)
fi fi