From 977609c66ed663a0cd5d8693171171f9744586fb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 1 Oct 2019 19:03:34 +0100 Subject: Rewrite localhost for sqitch As this means that like psql, the unix socket will be used. --- scripts/guix-data-service.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in index a0d64cf..e8b35b5 100644 --- a/scripts/guix-data-service.in +++ b/scripts/guix-data-service.in @@ -98,7 +98,11 @@ (string-append "db:pg://" (%config 'database-user) "@" - (%config 'database-host) + (if (string=? (%config 'database-host) + "localhost") + "" ; This means the unix socket + ; connection will be used + (%config 'database-host)) "/" (%config 'database-name))))) (simple-format #t "running command: ~A\n" -- cgit v1.2.3