~roadmr/capomastro/charm-force-python-django-version-again

1
2
3
4
5
6
7
8
9
10
#!/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