mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Unbreak socket mode logic
Reported by: clusteradm
This commit is contained in:
parent
56b67d3ed0
commit
f12cf0f877
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471940
2 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= fcgiwrap
|
||||
PORTVERSION= 1.1.0
|
||||
PORTREVISION= 8
|
||||
PORTREVISION= 9
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= rodrigo@FreeBSD.org
|
||||
|
|
|
@ -68,7 +68,6 @@ fcgiwrap_setfib() {
|
|||
fcgiwrap_precmd() {
|
||||
fcgiwrap_setfib
|
||||
install -d -o root -g wheel -m 1777 /var/run/fcgiwrap
|
||||
umask $(printf 0%o $(echo $((0777 - $(echo 0${fcgiwrap_socket_mode})))))
|
||||
}
|
||||
|
||||
fcgiwrap_postcmd() {
|
||||
|
@ -80,13 +79,15 @@ fcgiwrap_postcmd() {
|
|||
return
|
||||
;;
|
||||
esac
|
||||
if [ -n "${fcgiwrap_socket_mode}" ]; then
|
||||
chmod ${fcgiwrap_socket_mode} ${fcgiwrap_socket#unix:}
|
||||
fi
|
||||
if [ "${fcgiwrap_socket_owner}" != "${fcgiwrap_user}" ]; then
|
||||
chown ${fcgiwrap_socket_owner} ${fcgiwrap_socket#unix:}
|
||||
fi
|
||||
if [ "${fcgiwrap_socket_group}" != "${fcgiwrap_group}" ]; then
|
||||
chgrp ${fcgiwrap_socket_group} ${fcgiwrap_socket#unix:}
|
||||
fi
|
||||
umask ${fcgiwrap_saved_umask}
|
||||
}
|
||||
|
||||
fcgiwrap_stop() {
|
||||
|
|
Loading…
Add table
Reference in a new issue