← Back to team overview

nagios-charmers team mailing list archive

[Merge] ~peter-sabaini/nagios-charm:robustify-install into nagios-charm:master

 

Peter Sabaini has proposed merging ~peter-sabaini/nagios-charm:robustify-install into nagios-charm:master.

Requested reviews:
  Nagios Charm developers (nagios-charmers)

For more details, see:
https://code.launchpad.net/~peter-sabaini/nagios-charm/+git/nagios-charm/+merge/364101
-- 
Your team Nagios Charm developers is requested to review the proposed merge of ~peter-sabaini/nagios-charm:robustify-install into nagios-charm:master.
diff --git a/hooks/install b/hooks/install
index db3e40f..4d1ff11 100755
--- a/hooks/install
+++ b/hooks/install
@@ -35,9 +35,9 @@ if [ -f $CHARM_DIR/files/hostgroups_nagios2.cfg ]; then
     # Write the new hostgroups_nagios2.cfg file to prevent servers being classified as Debian.
     cp -v $CHARM_DIR/files/hostgroups_nagios2.cfg /etc/nagios3/conf.d/hostgroups_nagios2.cfg
     # Remove the services configuration file to eliminiate the need for ssh and localhost groups.
-    rm -v /etc/nagios3/conf.d/services_nagios2.cfg
+    rm -vf /etc/nagios3/conf.d/services_nagios2.cfg
     # Remove the ext file to eliminate the need for ssh and localhost groups.
-    rm -v /etc/nagios3/conf.d/extinfo_nagios2.cfg
+    rm -vf /etc/nagios3/conf.d/extinfo_nagios2.cfg
 fi
 
 enable_livestatus=$(config-get enable_livestatus)

References