Server IP : 15.235.198.142 / Your IP : 216.73.216.168 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/certbot/current/usr/share/augeas/lenses/dist/ |
Upload File : |
(* Postfix_Main module for Augeas Author: Free Ekanayaka <free@64studio.com> Reference: *) module Postfix_Main = autoload xfm (************************************************************************ * USEFUL PRIMITIVES *************************************************************************) let eol = Util.eol let indent = del /[ \t]*(\n[ \t]+)?/ " " let comment = Util.comment let empty = Util.empty let eq = del /[ \t]*=/ " =" let word = /[A-Za-z0-9_.-]+/ (* The value of a parameter, after the '=' sign. Postfix allows that * lines are continued by starting continuation lines with spaces. * The definition needs to make sure we don't add indented comment lines * into values *) let value = let chr = /[^# \t\n]/ in let any = /.*/ in let line = (chr . any* . chr | chr) in let lines = line . (/[ \t]*\n[ \t]+/ . line)* in store lines (************************************************************************ * ENTRIES *************************************************************************) let entry = [ key word . eq . (indent . value)? . eol ] (************************************************************************ * LENS *************************************************************************) let lns = (comment|empty|entry) * let filter = incl "/etc/postfix/main.cf" . incl "/usr/local/etc/postfix/main.cf" let xfm = transform lns filter