Account for amd64 architecture in snmpd element
Change-Id: I7abb1f0cb5e77c735ce3af4f4d17aff6dbc96619 Related-Bug: #1272234
This commit is contained in:
parent
564b29b11f
commit
5312f4e156
@ -3,5 +3,9 @@ set -eux
|
||||
|
||||
install-packages snmpd snmp-mibs-downloader lm-sensors nagios-plugins-basic
|
||||
# install our snmp check script
|
||||
install -m 0755 -o root -g root $(dirname $0)/../files/check_proc_open_files.py /usr/lib/nagios/plugins/check_proc_open_files.py
|
||||
DEST_DIR="/usr/lib64/nagios/plugins"
|
||||
if [ ! 'amd64' = "$ARCH" ] || [ ! -d $DEST_DIR ]; then
|
||||
DEST_DIR="/usr/lib/nagios/plugins"
|
||||
fi
|
||||
install -m 0755 -o root -g root $(dirname $0)/../files/check_proc_open_files.py $DEST_DIR/check_proc_open_files.py
|
||||
install -m 0440 -o root -g root $(dirname $0)/../files/snmp /etc/sudoers.d/snmp
|
||||
|
Loading…
Reference in New Issue
Block a user