Paste number 325467: postgres service

Paste number 325467: postgres service
Pasted by: janneke@gnu.org
When:5 years, 2 weeks ago
Share:Tweet this! | http://paste.lisp.org/+6Z4R
Channel:None
Paste contents:
Raw Source | XML | Display As
From e2a2f9f20924638f16ff3f0602ae1142eee93445 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Wed, 7 Sep 2016 22:44:53 +0200
Subject: [PATCH] services: postgresql, mysql: update for
 create-home-directory? field.

* gnu/services/databases.scm (%postgresql-accounts, %mysql-accounts):
Update by inserting (create-home-directory? #t) field added in eb56ee02.
Fixes postgresql service.
---
 gnu/services/databases.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index 86847f8..acc6ed0 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -76,6 +77,7 @@ host	all	all	::1/128 	trust"))
          (system? #t)
          (comment "PostgreSQL server user")
          (home-directory "/var/empty")
+         (create-home-directory? #t)
          (shell #~(string-append #$shadow "/sbin/nologin")))))
 
 (define postgresql-activation
@@ -171,6 +173,7 @@ and stores the database cluster in @var{data-directory}."
          (group "mysql")
          (system? #t)
          (home-directory "/var/empty")
+         (create-home-directory? #t)
          (shell #~(string-append #$shadow "/sbin/nologin")))))
 
 (define mysql-configuration-file
-- 
2.9.3

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.