sysutils/zrepl: pidfile should be world-readable

PR:	255981
This commit is contained in:
Alan Somers 2021-06-04 11:15:57 +01:00 committed by Lewis Cook
parent 942a91a3c4
commit 2a866a1b4f
No known key found for this signature in database
GPG key ID: 96755710687AE873
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= zrepl
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.0
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org

View file

@ -54,8 +54,8 @@ extra_commands="configtest"
zrepl_precmd()
{
if [ ! -d "/var/run/zrepl/stdinserver" ]; then
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl";
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl/stdinserver";
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl";
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl/stdinserver";
fi
if [ ! -e "${pidfile}" ]; then