diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2020-09-24 14:13:57 +0200 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-09-24 14:13:57 +0200 |
commit | d1386d85ca54d77c68709a661170bce3bbe29f1d (patch) | |
tree | d22c785762b6570d129109a75bf7a94b6b672c66 | |
parent | b310f17aaff8f17af0e7cf77b0b9d6866fe89abe (diff) | |
download | cuirass-d1386d85ca54d77c68709a661170bce3bbe29f1d.tar cuirass-d1386d85ca54d77c68709a661170bce3bbe29f1d.tar.gz |
Do not raise an exception at gcroot directory creation.
On fresh Guix System installations, Cuirass will not be allowd to create its
own profile directory. Instead this should be take care of by guix-daemon when
Cuirass will initiate its first connection to it.
* bin/cuirass.in (main): Do not raise an exception on gcroot directory
creation failure.
-rw-r--r-- | bin/cuirass.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in index c322a71..d6c2695 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -112,7 +112,9 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" (show-version) (exit 0)) (else - (mkdir-p (%gc-root-directory)) + ;; If we cannot create the gcroot directory, it should be done later + ;; on by guix-daemon itself. + (false-if-exception (mkdir-p (%gc-root-directory))) (let ((one-shot? (option-ref opts 'one-shot #f)) (port (string->number (option-ref opts 'port "8080"))) (host (option-ref opts 'listen "localhost")) |