3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

services: databases: Change quote' to single-quote.

In the postgresql-config-file gexp compiler.

* gnu/services/databases.scm (postgresql-config-file-compiler): Change quote'
to single-quote.
This commit is contained in:
Christopher Baines 2018-03-17 20:23:33 +00:00
parent 3def739da1
commit 533808383f
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -112,7 +112,7 @@ host all all ::1/128 trust"))
(match file
(($ <postgresql-config-file> log-destination hba-file
ident-file extra-config)
(define (quote' string)
(define (single-quote string)
(if string
(list "'" string "'")
'()))
@ -124,9 +124,9 @@ host all all ::1/128 trust"))
((key . #f) '())
((key values ...) `(,key " = " ,@values "\n")))
`(("log_destination" ,@(quote' log-destination))
("hba_file" ,@(quote' hba-file))
("ident_file" ,@(quote' ident-file))
`(("log_destination" ,@(single-quote log-destination))
("hba_file" ,@(single-quote hba-file))
("ident_file" ,@(single-quote ident-file))
,@extra-config)))
(gexp->derivation