summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2018-08-16 19:07:33 +0200
committerClément Lassieur <clement@lassieur.org>2018-08-16 19:23:29 +0200
commit8d4805ba2934e492524512aac8a95662f2cf97c7 (patch)
treebc6d4ab781ef71cf2f977d0052a41304d3a10751 /gnu
parent8f60e5338ab0ad38471ea429c1ad2f951e41d9d1 (diff)
downloadguix-8d4805ba2934e492524512aac8a95662f2cf97c7.tar.gz
services: cuirass: Put data in /var/lib to avoid removal at boot.
Fixes <https://bugs.gnu.org/32330>.

* gnu/services/cuirass.scm (<cuirass-configuration>)[database]: Change default
from /var/run/cuirass/cuirass.db to /var/lib/cuirass/cuirass.db.
(cuirass-account): Change home directory from /var/run/<user> to
/var/lib/<user>.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/cuirass.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm
index 9c62080629..496b2d06c8 100644
--- a/gnu/services/cuirass.scm
+++ b/gnu/services/cuirass.scm
@@ -61,7 +61,7 @@
   (interval         cuirass-configuration-interval ;integer (seconds)
                     (default 60))
   (database         cuirass-configuration-database ;string (file-name)
-                    (default "/var/run/cuirass/cuirass.db"))
+                    (default "/var/lib/cuirass/cuirass.db"))
   (port             cuirass-configuration-port ;integer (port)
                     (default 8081))
   (host             cuirass-configuration-host ;string
@@ -131,7 +131,7 @@
            (group cuirass-group)
            (system? #t)
            (comment "Cuirass privilege separation user")
-           (home-directory (string-append "/var/run/" cuirass-user))
+           (home-directory (string-append "/var/lib/" cuirass-user))
            (shell #~(string-append #$shadow "/sbin/nologin"))))))
 
 (define (cuirass-activation config)