[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: services: bitlbee: Make /var/lib/bitlbee when activating.
From: |
Ludovic Courtès |
Subject: |
04/05: services: bitlbee: Make /var/lib/bitlbee when activating. |
Date: |
Thu, 12 Mar 2015 20:00:15 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 9751c39a6d493535d3866f536fed8b16b5a4f1f8
Author: Ludovic Courtès <address@hidden>
Date: Thu Mar 12 19:10:44 2015 +0100
services: bitlbee: Make /var/lib/bitlbee when activating.
* gnu/services/networking.scm (bitlbee-service): Add 'activate' field.
---
gnu/services/networking.scm | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index a2d8e3a..af8dd43 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -286,6 +286,14 @@ configuration file."
(service
(provision '(bitlbee))
(requirement '(user-processes loopback))
+ (activate #~(begin
+ (use-modules (guix build utils))
+
+ ;; This directory is used to store OTR data.
+ (mkdir-p "/var/lib/bitlbee")
+ (let ((user (getpwnam "bitlbee")))
+ (chown "/var/lib/bitlbee"
+ (passwd:uid user) (passwd:gid user)))))
(start #~(make-forkexec-constructor
(list (string-append #$bitlbee "/sbin/bitlbee")
"-n" "-F" "-u" "bitlbee" "-c" #$conf)))
- branch master updated (46ffff9 -> 8c9653b), Ludovic Courtès, 2015/03/12
- 03/05: system: Adjust '.bashrc' skeleton for non-interactive SSH sessions., Ludovic Courtès, 2015/03/12
- 05/05: build-system/python: Delay evaluation of the 'python2' package., Ludovic Courtès, 2015/03/12
- 02/05: gnu: Move cflow, Complexity, and GLOBAL to (gnu packages code)., Ludovic Courtès, 2015/03/12
- 01/05: gnu: Add SLOCCount., Ludovic Courtès, 2015/03/12
- 04/05: services: bitlbee: Make /var/lib/bitlbee when activating.,
Ludovic Courtès <=