Add dokuwiki base dir to configuration.
This commit is contained in:
parent
ae0d9b0a64
commit
c0040b3898
3 changed files with 14 additions and 2 deletions
|
@ -134,6 +134,7 @@ are used to set initial values for runtime parameters:
|
||||||
* bank-dir
|
* bank-dir
|
||||||
* email-from
|
* email-from
|
||||||
* summary-mailto
|
* summary-mailto
|
||||||
|
* dokuwiki
|
||||||
|
|
||||||
API Keys File
|
API Keys File
|
||||||
-------------
|
-------------
|
||||||
|
|
|
@ -75,6 +75,8 @@ configuration values.
|
||||||
*email-from*
|
*email-from*
|
||||||
|
|
||||||
*summary-mailto*
|
*summary-mailto*
|
||||||
|
|
||||||
|
*dokuwiki*
|
||||||
|
|
||||||
(load-configuration!)
|
(load-configuration!)
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
*bank-dir*
|
*bank-dir*
|
||||||
*email-from*
|
*email-from*
|
||||||
*summary-mailto*
|
*summary-mailto*
|
||||||
|
*doku-base*
|
||||||
|
|
||||||
load-configuration!
|
load-configuration!
|
||||||
)
|
)
|
||||||
|
@ -73,10 +74,14 @@
|
||||||
(define *email-from* (make-parameter #f))
|
(define *email-from* (make-parameter #f))
|
||||||
(define =email-from= "Brmlab - Rada <rada@brmlab.cz>")
|
(define =email-from= "Brmlab - Rada <rada@brmlab.cz>")
|
||||||
|
|
||||||
;; TODO - later move to configuration
|
;; Summary email address
|
||||||
(define *summary-mailto* (make-parameter #f))
|
(define *summary-mailto* (make-parameter #f))
|
||||||
(define =summary-mailto= "rada@brmlab.cz")
|
(define =summary-mailto= "rada@brmlab.cz")
|
||||||
|
|
||||||
|
;; DokuWiki base dir
|
||||||
|
(define *doku-base* (make-parameter #f))
|
||||||
|
(define =doku-base= "/var/www")
|
||||||
|
|
||||||
;; Loads the configuration file and possibly changes the default
|
;; Loads the configuration file and possibly changes the default
|
||||||
;; parameters.
|
;; parameters.
|
||||||
(define (load-configuration!)
|
(define (load-configuration!)
|
||||||
|
@ -108,6 +113,8 @@
|
||||||
((summary-mailto)
|
((summary-mailto)
|
||||||
(when (not (*summary-mailto*))
|
(when (not (*summary-mailto*))
|
||||||
(*summary-mailto* v)))
|
(*summary-mailto* v)))
|
||||||
|
((dokuwiki)
|
||||||
|
(*doku-base* v))
|
||||||
)))
|
)))
|
||||||
(loop (cdr lines))))))
|
(loop (cdr lines))))))
|
||||||
(when (not (*members-directory*))
|
(when (not (*members-directory*))
|
||||||
|
@ -120,6 +127,8 @@
|
||||||
(when (not (*email-from*))
|
(when (not (*email-from*))
|
||||||
(*email-from* =email-from=))
|
(*email-from* =email-from=))
|
||||||
(when (not (*summary-mailto*))
|
(when (not (*summary-mailto*))
|
||||||
(*summary-mailto* =summary-mailto=)))
|
(*summary-mailto* =summary-mailto=))
|
||||||
|
(when (not (*doku-base*))
|
||||||
|
(*doku-base* =doku-base=)))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue