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['USER'] = '" db-user "';
|
||||
$DB['PASSWORD'] = " (let ((file (location-file %location))
|
||||
(line (location-line %location))
|
||||
(column (location-column %location)))
|
||||
(if (string-null? db-password)
|
||||
(if (string-null? db-secret-file)
|
||||
(raise (make-compound-condition
|
||||
(condition
|
||||
(&message
|
||||
(message
|
||||
(format #f "no '~A' or '~A' field in your '~A' record"
|
||||
'db-secret-file 'db-password
|
||||
'zabbix-front-end-configuration))))
|
||||
(condition
|
||||
(&error-location
|
||||
(location %location)))))
|
||||
(string-append "trim(file_get_contents('"
|
||||
db-secret-file "'));\n"))
|
||||
(begin
|
||||
(display-hint (format #f (G_ "~a:~a:~a: ~a:
|
||||
(line (location-line %location))
|
||||
(column (location-column %location)))
|
||||
(if (string-null? db-password)
|
||||
(if (string-null? db-secret-file)
|
||||
(raise (make-compound-condition
|
||||
(condition
|
||||
(&message
|
||||
(message
|
||||
(format #f "no '~A' or '~A' field in your '~A' record"
|
||||
'db-secret-file 'db-password
|
||||
'zabbix-front-end-configuration))))
|
||||
(condition
|
||||
(&error-location
|
||||
(location %location)))))
|
||||
(string-append "trim(file_get_contents('"
|
||||
db-secret-file "'));\n"))
|
||||
(begin
|
||||
(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))
|
||||
(format #f "'~a';~%" db-password))))
|
||||
"
|
||||
(format #f "'~a';~%" db-password))))
|
||||
"
|
||||
// Schema name. Used for IBM DB2 and PostgreSQL.
|
||||
$DB['SCHEMA'] = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue