~clint-fewbar/charms/precise/nagios/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Clint Byrum
  • Date: 2012-08-01 23:51:23 UTC
  • Revision ID: clint@ubuntu.com-20120801235123-uhe9944cc91mj4bq
bugfix for enabling external commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
fi
26
26
 
27
27
# enable external commands per README.Debian file
28
 
if !grep '^check_external_commands=1$' /etc/nagios3/nagios.cfg ; then
 
28
if ! grep '^check_external_commands=1$' /etc/nagios3/nagios.cfg ; then
29
29
    echo check_external_commands=1 >> /etc/nagios3/nagios.cfg
30
30
fi
31
31
# || :'s are for idempotency