4 if [ "`uname -m`" = "x86_64" ]; then
10 # Default install locations
11 def_plugindir=${libdir}/nagios/plugins
12 def_mandir=/usr/share/man
14 # Find install locations
15 if [ "$1" = "-q" ]; then
16 plugindir=$def_plugindir
19 echo -n "Plugin dir [$def_plugindir]: "
21 if [ "$plugindir" = "" ]; then
22 plugindir=$def_plugindir
24 echo -n "Man page dir [$def_mandir]: "
26 if [ "$mandir" = "" ]; then
34 # Error if plugin dir doesn't exist
35 if [ -d $plugindir ]; then
38 echo "ERROR: Plugin directory $plugindir doesn't exist,"
39 echo "ERROR: or is not a directory"
43 # Error if man dir doesn't exist
44 if [ -d $mandir ]; then
47 echo "ERROR: Man page directory $mandir doesn't exist,"
48 echo "ERROR: or is not a directory"
53 install -p -m 0755 check_openmanage $plugindir
54 install -m 0644 check_openmanage.8 $man8dir
55 install -m 0644 check_openmanage.conf.5 $man5dir