From 4657a39270f64c071d6b68693e9e5b7fcbb2bfa5 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 28 Jan 2022 10:56:26 +0100 Subject: services: zabbix-frontend: Fix configuration file for hard coded passwords. This is a follow-up to commit 078f5bfae7ee174177791defcfd350117a503a6d. * gnu/services/monitoring.scm (zabbix-front-end-config): When DB-PASSWORD is set, enclose the password with quotes in the configuration file. --- gnu/services/monitoring.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/services') diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm index 1b49dbd3cb..957672882a 100644 --- a/gnu/services/monitoring.scm +++ b/gnu/services/monitoring.scm @@ -598,7 +598,7 @@ $DB['PASSWORD'] = " (let ((file (location-file %location)) (display-hint (format #f (G_ "~a:~a:~a: ~a: Consider using @code{db-secret-file} instead of @code{db-password} for better security.") file line column 'zabbix-front-end-configuration)) - db-password))) + (format #f "'~a';~%" db-password)))) " // Schema name. Used for IBM DB2 and PostgreSQL. $DB['SCHEMA'] = ''; -- cgit 1.4.1