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>.
This commit is contained in:
Clément Lassieur 2018-08-16 19:07:33 +02:00
parent 8f60e5338a
commit 8d4805ba29
No known key found for this signature in database
GPG Key ID: 89F96D4808F359C7
1 changed files with 2 additions and 2 deletions

View File

@ -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)