FreeBSD init: PID file should not be executable (#2945)

This commit is contained in:
Maxime Soulé 2019-12-28 19:54:28 +01:00 committed by Matt Holt
parent 008415f206
commit 4b68de8418

View file

@ -80,7 +80,7 @@ caddy_startprecmd()
rc_flags=""
if [ ! -e "${pidfile}" ]; then
install -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${pidfile}"
install -m 644 -o "${caddy_user}" -g "${caddy_group}" "/dev/null" "${pidfile}"
fi
}