mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: zabbix-frontend: Adjust indentation.
* gnu/services/monitoring.scm (zabbix-front-end-activation): Reindent.
This commit is contained in:
parent
7f12a40e9a
commit
8fa6f975d4
1 changed files with 20 additions and 20 deletions
|
@ -622,28 +622,28 @@ (define (zabbix-front-end-config config)
|
||||||
$DB['DATABASE'] = '" db-name "';
|
$DB['DATABASE'] = '" db-name "';
|
||||||
$DB['USER'] = '" db-user "';
|
$DB['USER'] = '" db-user "';
|
||||||
$DB['PASSWORD'] = " (let ((file (location-file %location))
|
$DB['PASSWORD'] = " (let ((file (location-file %location))
|
||||||
(line (location-line %location))
|
(line (location-line %location))
|
||||||
(column (location-column %location)))
|
(column (location-column %location)))
|
||||||
(if (string-null? db-password)
|
(if (string-null? db-password)
|
||||||
(if (string-null? db-secret-file)
|
(if (string-null? db-secret-file)
|
||||||
(raise (make-compound-condition
|
(raise (make-compound-condition
|
||||||
(condition
|
(condition
|
||||||
(&message
|
(&message
|
||||||
(message
|
(message
|
||||||
(format #f "no '~A' or '~A' field in your '~A' record"
|
(format #f "no '~A' or '~A' field in your '~A' record"
|
||||||
'db-secret-file 'db-password
|
'db-secret-file 'db-password
|
||||||
'zabbix-front-end-configuration))))
|
'zabbix-front-end-configuration))))
|
||||||
(condition
|
(condition
|
||||||
(&error-location
|
(&error-location
|
||||||
(location %location)))))
|
(location %location)))))
|
||||||
(string-append "trim(file_get_contents('"
|
(string-append "trim(file_get_contents('"
|
||||||
db-secret-file "'));\n"))
|
db-secret-file "'));\n"))
|
||||||
(begin
|
(begin
|
||||||
(display-hint (format #f (G_ "~a:~a:~a: ~a:
|
(display-hint (format #f (G_ "~a:~a:~a: ~a:
|
||||||
Consider using @code{db-secret-file} instead of @code{db-password} for better
|
Consider using @code{db-secret-file} instead of @code{db-password} for better
|
||||||
security.") file line column 'zabbix-front-end-configuration))
|
security.") file line column 'zabbix-front-end-configuration))
|
||||||
(format #f "'~a';~%" db-password))))
|
(format #f "'~a';~%" db-password))))
|
||||||
"
|
"
|
||||||
// Schema name. Used for IBM DB2 and PostgreSQL.
|
// Schema name. Used for IBM DB2 and PostgreSQL.
|
||||||
$DB['SCHEMA'] = '';
|
$DB['SCHEMA'] = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue