aboutsummaryrefslogtreecommitdiff
path: root/tw/services
diff options
context:
space:
mode:
Diffstat (limited to 'tw/services')
-rw-r--r--tw/services/php-fpm.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/tw/services/php-fpm.scm b/tw/services/php-fpm.scm
index cb351829..e1ada838 100644
--- a/tw/services/php-fpm.scm
+++ b/tw/services/php-fpm.scm
@@ -115,8 +115,8 @@
"pm.process_idle_timeout =" (number->string pm.process-idle-timeout) "s\n")))
(map (match-lambda
- ((variable . value)
- (list "env[" variable "] =" value "\n")))
+ ((variable . _)
+ (list "env[" variable "] = $" variable "\n")))
environment-variables)
"php_flag[display_errors] = " (if display-errors "on" "off") "\n"
@@ -148,6 +148,13 @@
#$@(if php-ini-file
`("-c" ,php-ini-file)
'()))
+ #:environment-variables
+ (cons*
+ #$@(map (match-lambda
+ ((variable . value)
+ #~(string-append #$variable "=" #$value)))
+ environment-variables)
+ (default-environment-variables))
#:pid-file #$pid-file))
(stop #~(make-kill-destructor)))))))