summary refs log tree commit diff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-12-09 22:02:16 +0100
committerLudovic Courtès <ludo@gnu.org>2013-12-10 00:24:02 +0100
commit13ce0e3aa7c4803f35063cd1adcfa1279cc80dd5 (patch)
tree504a978e608fdc9fa740c2bdfb3950a9567d81c9 /gnu/system
parent033adfe7e0ed37f42098772549414a1dc797605c (diff)
downloadguix-13ce0e3aa7c4803f35063cd1adcfa1279cc80dd5.tar.gz
gnu: dmd: Avoid "already exists" error on startup.
* gnu/system/dmd.scm (dmd-configuration-file)[config]: Remove
  "/var/nix/gcroots/etc-directory" before trying to recreate it.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/dmd.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/system/dmd.scm b/gnu/system/dmd.scm
index aec7d03759..307412a5d5 100644
--- a/gnu/system/dmd.scm
+++ b/gnu/system/dmd.scm
@@ -305,6 +305,7 @@ ETC on startup."
                               (not (member file '("." ".."))))))
 
          ;; Prevent ETC from being GC'd.
+         (rm-f "/var/nix/gcroots/etc-directory")
          (symlink ,etc "/var/nix/gcroots/etc-directory"))
 
        (format #t "starting services...~%")