Move mailman2-bin parameter to configuration.
This commit is contained in:
parent
1f9f2503ab
commit
08483773f0
3 changed files with 15 additions and 8 deletions
|
@ -37,6 +37,7 @@
|
|||
*email-from*
|
||||
*summary-mailto*
|
||||
*doku-base*
|
||||
*mailman2-bin*
|
||||
|
||||
load-configuration!
|
||||
)
|
||||
|
@ -88,6 +89,10 @@
|
|||
(define *doku-base* (make-parameter #f))
|
||||
(define =doku-base= "/var/www")
|
||||
|
||||
;; Where does the mailman binaries reside
|
||||
(define *mailman2-bin* (make-parameter #f))
|
||||
(define =mailman2-bin= "/usr/lib/mailman/bin")
|
||||
|
||||
(define (load-single-configuration! fname)
|
||||
(when (file-exists? fname)
|
||||
(let loop ((lines (read-lines (open-input-file fname))))
|
||||
|
@ -120,6 +125,9 @@
|
|||
((dokuwiki)
|
||||
(when (not (*doku-base*))
|
||||
(*doku-base* v)))
|
||||
((mailman2)
|
||||
(when (not (*mailman2-bin*))
|
||||
(*mailman2-bin* v)))
|
||||
)))
|
||||
(loop (cdr lines)))))))
|
||||
|
||||
|
@ -145,6 +153,8 @@
|
|||
(when (not (*summary-mailto*))
|
||||
(*summary-mailto* =summary-mailto=))
|
||||
(when (not (*doku-base*))
|
||||
(*doku-base* =doku-base=)))
|
||||
(*doku-base* =doku-base=))
|
||||
(when (not (*mailman2-bin*))
|
||||
(*mailman2-bin* =mailman2-bin=)))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue