mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-05-20 17:05:08 +03:00
Prevent openrc service from generating a config readable by everyone
This commit is contained in:
parent
47818a1a7c
commit
9cf0a75940
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ depend() {
|
||||||
start_pre() {
|
start_pre() {
|
||||||
if [ ! -f "${CONFFILE}" ]; then
|
if [ ! -f "${CONFFILE}" ]; then
|
||||||
ebegin "Generating new configuration file into ${CONFFILE}"
|
ebegin "Generating new configuration file into ${CONFFILE}"
|
||||||
if ! eval ${command} -genconf > ${CONFFILE}; then
|
if ! (umask 037 && eval ${command} -genconf > ${CONFFILE}); then
|
||||||
eerror "Failed to generate configuration file"
|
eerror "Failed to generate configuration file"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue