#!/bin/bash
if [ -d "/usr/local/lib/nagios/plugins" ]; then
juju-log "Installing the check status script for Nagios..."
# FIXME: perhaps after testing the charm these should be inside
# the capomastro package and not here, and these paths look terrible anyway
install --owner=root --group=root --mode=0555 nagios/check_status_file.sh /usr/local/lib/nagios/plugins/check_status_file.sh
install --owner=root --group=root --mode=0550 nagios/capomastro_status.sh /usr/local/lib/nagios/plugins/capomastro_status.sh
fi
|