me
/
guix
Archived
1
0
Fork 0

services: postgresql: Simplify execution of ‘initdb’.

* gnu/services/databases.scm (postgresql-activation): Replace
‘primitive-exit’ + ‘system*’ with ‘execl’.

Change-Id: I491fd3093f67af59f240438d7d6123e769e4ec1e
master
Ludovic Courtès 2024-03-29 23:13:32 +01:00
parent ed03a0aa9b
commit 6b138626e4
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 6 deletions

View File

@ -273,12 +273,9 @@ host all all ::1/128 md5"))
(lambda ()
(setgid (passwd:gid user))
(setuid (passwd:uid user))
(primitive-exit
(apply system*
initdb
"-D"
#$data-directory
initdb-args)))
(apply execl initdb
initdb "-D" #$data-directory
initdb-args))
(lambda ()
(primitive-exit 1))))
(pid (waitpid pid))))))))))