4 if [ "`uname -m`" = "x86_64" ]; then
10 # Default install locations
11 def_plugindir=${libdir}/nagios/plugins
12 def_mandir=/usr/share/man/man3
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
31 # Error if plugin dir doesn't exist
32 if [ -d $plugindir ]; then
35 echo "ERROR: Plugin directory $plugindir doesn't exist,"
36 echo "ERROR: or is not a directory"
40 # Error if man dir doesn't exist
41 if [ -d $mandir ]; then
44 echo "ERROR: Man page directory $mandir doesn't exist,"
45 echo "ERROR: or is not a directory"
50 install -p -m 0755 check_openmanage $plugindir
51 install -m 0644 check_openmanage.3pm $mandir