Also accept strings as sendmail paths in backend Guix service

This commit is contained in:
Saku Laesvuori 2023-09-26 21:51:09 +03:00
parent 777c635c0c
commit ef8c9acd32
Signed by: slaesvuo
GPG Key ID: 257D284A2A1D3A32
1 changed files with 5 additions and 1 deletions

View File

@ -70,6 +70,10 @@
(service-extension account-service-type frontend-accounts)))
(description "Run the datarekisteri HTTP frontend server")))
(define (file-like-or-string? x)
(or (file-like? x)
(string? x)))
(define-configuration/no-serialization plain-datarekisteri-backend-configuration
(datarekisteri-backend
(file-like datarekisteri-backend)
@ -84,7 +88,7 @@
(integer 3100)
"The TCP port to listen on.")
(sendmail
(file-like)
(file-like-or-string)
"Path to the sendmail program to send emails with."))
(define (backend-shepherd-service config)