From: Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
To: 39152@debbugs.gnu.org
Subject: [bug#39152] [PATCH] Allow extra config content in mysql-configuration
Date: Thu, 16 Jan 2020 17:41:37 +0100 [thread overview]
Message-ID: <87blr32w1q.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
Hello,
Attached is a patch that proposes changing the mysql-service so that the
user can inject additional mysql configuration into the default
configuration file.
I currently use the patch in a private channel and it seems to work
great.
Best wishes,
Alex
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-services-Allow-extra-content-in-mysql-configurat.patch --]
[-- Type: text/x-diff, Size: 1362 bytes --]
From 3e2139c6e6cecfd34f7e9423c23e57b3d9dbf197 Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex@komputilo.eu>
Date: Thu, 16 Jan 2020 17:17:48 +0100
Subject: [PATCH] gnu: services: Allow extra content in mysql configuration.
* gnu/services/databases.scm (<mysql-configuration>): New field.
(mysql-configuration-file): Use it.
---
gnu/services/databases.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index a26eeb20cc..473ece4e97 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -463,7 +463,8 @@ storage:
mysql-configuration make-mysql-configuration
mysql-configuration?
(mysql mysql-configuration-mysql (default mariadb))
- (port mysql-configuration-port (default 3306)))
+ (port mysql-configuration-port (default 3306))
+ (extra-content mysql-configuration-extra-content (default "")))
(define %mysql-accounts
(list (user-group
@@ -478,11 +479,12 @@ storage:
(define mysql-configuration-file
(match-lambda
- (($ <mysql-configuration> mysql port)
+ (($ <mysql-configuration> mysql port extra-content)
(mixed-text-file "my.cnf" "[mysqld]
datadir=/var/lib/mysql
socket=/run/mysqld/mysqld.sock
port=" (number->string port) "
+" extra-content "
"))))
(define (%mysql-activation config)
--
2.23.0
next reply other threads:[~2020-01-16 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 16:41 Alex Sassmannshausen [this message]
2020-01-16 21:14 ` [bug#39152] [PATCH] Allow extra config content in mysql-configuration Christopher Baines
2020-01-17 10:48 ` Alex Sassmannshausen
2020-01-17 10:49 ` bug#39152: Pushed, Done Alex Sassmannshausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blr32w1q.fsf@gmail.com \
--to=alex.sassmannshausen@gmail.com \
--cc=39152@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.