diff options
author | Martin Skøtt <martin@xenux.dk> | 2002-08-26 13:13:26 +0000 |
---|---|---|
committer | Martin Skøtt <martin@xenux.dk> | 2002-08-26 13:13:26 +0000 |
commit | d2d943abe1359be92330fd0daaa5ccc1fcb5a585 (patch) | |
tree | add92066e8a7b855cc8a6bd8cf5ca31bd92b0e37 /cfengine | |
parent | 5272b758302c09c3c3913cde65e0660d0df19fbb (diff) |
Now checks if logcheck is installed and installs it if not.
Diffstat (limited to 'cfengine')
-rw-r--r-- | cfengine/cf.services.harden | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cfengine/cf.services.harden b/cfengine/cf.services.harden index bca0aa8..8a170f8 100644 --- a/cfengine/cf.services.harden +++ b/cfengine/cf.services.harden @@ -1,4 +1,6 @@ control: + AddInstallable = ( install_logcheck ) + logcheck = ( /etc/logcheck ) # type viser om maskinen er workstation eller server. Bruges til at linke de rigtige steder @@ -6,6 +8,9 @@ control: Standalone_xenux:: type = ( workstation ) !Standalone_xenux:: type = ( server ) +groups: + install_logcheck = ( '/usr/sbin/test ! -e /usr/sbin/logcheck' ) + editfiles: # AIDE section { /etc/aide/aide.conf @@ -128,4 +133,9 @@ links: $(logcheck)/ignore.d/local-postfix -> $(LocalCommon)/logcheck/ignore.d.$(type)/postfix $(logcheck)/violations.ignore.d/local-ssh -> $(LocalCommon)/logcheck/violations.ignore.d/ssh - $(logcheck)/violations.ignore.d/local-postfix -> $(LocalCommon)/logcheck/violations.ignore.d/postfix
\ No newline at end of file + $(logcheck)/violations.ignore.d/local-postfix -> $(LocalCommon)/logcheck/violations.ignore.d/postfix + +shellcommands: + install_logcheck:: + #Installerer logcheck hvis ikke allerede er + "/usr/bin/yes no | /usr/bin/apt-get -q=2 install logcheck"
\ No newline at end of file |