FreeBSD Bugzilla – Attachment 175077 Details for
Bug 212911
lang/php56, lang/php70: Add umask to php-fpm rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add umask setting
patch-php-fpm (text/plain), 798 bytes, created by
Robert Kánia
on 2016-09-22 21:47:53 UTC
(
hide
)
Description:
Patch to add umask setting
Filename:
MIME Type:
Creator:
Robert Kánia
Created:
2016-09-22 21:47:53 UTC
Size:
798 bytes
patch
obsolete
>--- php-fpm.orig 2016-07-20 11:41:18.000000000 +0200 >+++ php-fpm 2016-07-20 14:41:31.000000000 +0200 >@@ -17,7 +17,7 @@ > name="php_fpm" > rcvar=php_fpm_enable > >-start_precmd="php_fpm_checkconfig" >+start_precmd="php_fpm_prestart" > restart_precmd="php_fpm_checkconfig" > reload_precmd="php_fpm_checkconfig" > configtest_cmd="php_fpm_checkconfig" >@@ -25,6 +25,7 @@ > load_rc_config "$name" > > : ${php_fpm_enable="NO"} >+: ${php_fpm_umask=""} > > extra_commands="reload configtest logrotate" > >@@ -51,4 +52,18 @@ > eval ${command} -t > } > >+php_fpm_prestart() >+{ >+ php_fpm_checkconfig >+ checkconfig=$? >+ if [ $checkconfig -ne 0 ]; then >+ return $checkconfig >+ fi >+ >+ if [ ! -z "$php_fpm_umask" ]; then >+ echo "Setting umask to: ${php_fpm_umask}" >+ umask $php_fpm_umask >+ fi >+} >+ > run_rc_command "$1" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212911
: 175077 |
183450