Forum: Cfengine Help Subject: Re: Cfengine 3.1.4 and replace_patterns Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,20414,20418#msg-20418
Please try this code. It should do something. :-) edit_line => replace_line("^D\{MTAHost\}\[(?!$(g.mailrelay)).*","D\{MTAHost\}\[$(g.mailrelay)\]"), Cheers, --Nakarin _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine