From 30fd1460525b9e8eb71e6f0b2123fa845a18a25e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 21 Feb 2002 04:47:38 +0000 Subject: cfengine: Proftpd doesn't chroot jails when line ends with a comment. --- cfengine/cf.services.ftp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cfengine') diff --git a/cfengine/cf.services.ftp b/cfengine/cf.services.ftp index f90f8a3..669d2a9 100644 --- a/cfengine/cf.services.ftp +++ b/cfengine/cf.services.ftp @@ -20,11 +20,11 @@ editfiles: # WarnIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$" BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$" - Append 'DefaultRoot ~ # Added by cfengine' + Append 'DefaultRoot ~' EndGroup LocateLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$" - BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~[[:blank:]].*$" - ReplaceLineWith 'DefaultRoot ~ # Edited by cfengine' + BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~$" + ReplaceLineWith 'DefaultRoot ~' EndGroup UnsetAbort "^[[:blank:]]*VirtualHost[[:blank:]]*.*$" } -- cgit v1.2.3