Imported Upstream version 2.6.0
This commit is contained in:
parent
26fb71b504
commit
459aaf9392
510 changed files with 40508 additions and 18859 deletions
46
scripts/augeas/nutupssetconf.aug.in
Normal file
46
scripts/augeas/nutupssetconf.aug.in
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
(*
|
||||
Module: NutUpssetConf
|
||||
Parses @CONFPATH@/upsset.conf
|
||||
|
||||
Author: Raphael Pinson <raphink@gmail.com>
|
||||
Frederic Bohe <fredericbohe@eaton.com>
|
||||
|
||||
About: License
|
||||
This file is licensed under the GPL.
|
||||
|
||||
About: Lens Usage
|
||||
Sample usage of this lens in augtool
|
||||
|
||||
* Print the string declaring secured cgi directory:
|
||||
> print /files@CONFPATH@/upsset.conf/auth
|
||||
|
||||
About: Configuration files
|
||||
This lens applies to @CONFPATH@/upsset.conf. See <filter>.
|
||||
*)
|
||||
|
||||
module NutUpssetConf =
|
||||
autoload upsset_xfm
|
||||
|
||||
|
||||
(************************************************************************
|
||||
* Group: UPSSET.CONF
|
||||
*************************************************************************)
|
||||
|
||||
(* general *)
|
||||
let sep_spc = Util.del_opt_ws ""
|
||||
let eol = Util.eol
|
||||
let comment = Util.comment
|
||||
let empty = Util.empty
|
||||
|
||||
|
||||
let upsset_key_word = "I_HAVE_SECURED_MY_CGI_DIRECTORY"
|
||||
|
||||
let upsset_key = [ label "auth" . sep_spc . store upsset_key_word . eol ]
|
||||
|
||||
let upsset_lns = (upsset_key|comment|empty)*
|
||||
|
||||
let upsset_filter = ( incl "@CONFPATH@/upsset.conf" )
|
||||
. Util.stdexcl
|
||||
|
||||
let upsset_xfm = transform upsset_lns upsset_filter
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue