diff options
-rw-r--r-- | cfengine/cf.services.harden | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cfengine/cf.services.harden b/cfengine/cf.services.harden index 83b0e83..18d80bd 100644 --- a/cfengine/cf.services.harden +++ b/cfengine/cf.services.harden @@ -103,7 +103,7 @@ editfiles: LocateLineMatching "^#[[:blank:]]*!/home" ReplaceLineWith "!/home" ResetSearch "1" - LocateLineMatching "^#[[:blank:]]*!/lost+found" + LocateLineMatching "^#[[:blank:]]*!/lost\+found" ReplaceLineWith "!/lost+found" ResetSearch "1" LocateLineMatching "^#[[:blank:]]*!/mnt" @@ -155,8 +155,8 @@ editfiles: # SetCommentStart "# ! " # SetCommentEnd "" ResetSearch "1" - LocateLineMatching "^[[:blank:]]*#[[:blank:]]*# ! if [ \"\$(echo \"$output\".*" - ReplaceLineWith " if [ \"\$(echo \"$output\" | egrep -v '^integrit: ')\" ]; then" + LocateLineMatching '^[[:blank:]]*\#[[:blank:]]*\# ! if \[ "$\(echo "$output".*' + ReplaceLineWith ' if [ "$\(echo "$output" | egrep -v "^integrit: ")" ]; then' ResetSearch "1" LocateLineMatching "^[[:blank:]]*#[[:blank:]]*# ! fi" ReplaceLineWith " fi" |