diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-02-27 13:01:52 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-02-27 13:01:52 +0000 |
commit | 10209002ed53ae43fd73f3d4175f1912c698109f (patch) | |
tree | 0193a20ff3ea274f5fb986c5f858a4a3f2437a53 | |
parent | 7a3e99bf72a2a27690f021c508ddf917c693b3b2 (diff) |
cfengine: Correct errors in harden integrit rule makiing CFEngine fail (still a few corrections needed to make the rule actually work, though).
-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" |