diff options
author | Alex Sassmannshausen <alex@komputilo.eu> | 2020-01-16 17:17:48 +0100 |
---|---|---|
committer | Alex Sassmannshausen <alex@komputilo.eu> | 2020-01-17 11:28:40 +0100 |
commit | 33ed8296c0837344f932d6885de41b23c2b12dd3 (patch) | |
tree | 17c88b17434b5bfc1c8a3e88ebfccb2989444790 /gnu/services | |
parent | bd843a2ff6ccf5a4dc28795ad5671a8c7c28ee11 (diff) | |
download | guix-33ed8296c0837344f932d6885de41b23c2b12dd3.tar guix-33ed8296c0837344f932d6885de41b23c2b12dd3.tar.gz |
gnu: services: Allow extra content in mysql configuration.
* gnu/services/databases.scm (<mysql-configuration>): New field.
(mysql-configuration-file): Use it.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/databases.scm | 6 |
1 files 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) |