guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: hydra: services: Map glibc-utf8-locales in the goggles-bot contai


From: Ludovic Courtès
Subject: 01/02: hydra: services: Map glibc-utf8-locales in the goggles-bot container.
Date: Fri, 18 Nov 2022 06:00:00 -0500 (EST)

civodul pushed a commit to branch master
in repository maintenance.

commit 136af3a8772aa36bc8ad1f8e860bf2c9aadec9c5
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Nov 18 11:55:42 2022 +0100

    hydra: services: Map glibc-utf8-locales in the goggles-bot container.
    
    * hydra/modules/sysadmin/services.scm (goggles-bot-shepherd-services)
    [program/wrapped]: Add mapping for "/run/current-system/locale".
    Adjust GUIX_LOCPATH.
---
 hydra/modules/sysadmin/services.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/hydra/modules/sysadmin/services.scm 
b/hydra/modules/sysadmin/services.scm
index 0cd9b25..d0c5b24 100644
--- a/hydra/modules/sysadmin/services.scm
+++ b/hydra/modules/sysadmin/services.scm
@@ -781,7 +781,10 @@ to a selected directory.")
      #:mappings (list (file-system-mapping
                        (source log-directory)
                        (target log-directory)
-                       (writable? #t)))
+                       (writable? #t))
+                      (file-system-mapping
+                       (source (file-append glibc-utf8-locales "/lib/locale"))
+                       (target "/run/current-system/locale")))
      #:namespaces (delq 'net %namespaces)
      #:preserved-environment-variables '("GUIX_LOCPATH" "LC_ALL")))
 
@@ -797,8 +800,7 @@ to a selected directory.")
                    #:user "goggles-bot" #:group "goggles-bot"
                    #:log-file "/var/log/goggles-bot.log"
                    #:environment-variables
-                   (list (string-append "GUIX_LOCPATH=" #$glibc-utf8-locales
-                                        "/lib/locale")
+                   (list "GUIX_LOCPATH=/run/current-system/locale"
                          "LC_ALL=en_US.utf8")))
          (stop #~(make-kill-destructor))
          (documentation "Run Goggles-Bot, the IRC logging robot."))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]