From c6f9192d168207d01b2c685697fca03ff37c7b80 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 21 Apr 2023 23:54:20 -0600 Subject: [PATCH] fix installer --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index a0f8dae..b196c13 100755 --- a/install.sh +++ b/install.sh @@ -56,11 +56,10 @@ if [[ ! -d /opt/linuxfabrik-monitoring-plugins ]]; then python3 -m venv /opt/venvs/linuxfabrik fi - /opt/venvs/linuxfabrik/bin/pip install psutil - cd /opt/linuxfabrik-monitoring-plugins rm -rf lib git clone https://github.com/Linuxfabrik/lib.git + /opt/venvs/linuxfabrik/bin/pip install -U pip wheel setuptools /opt/venvs/linuxfabrik/bin/pip install bs4 psutil smbprotocol vici pymysql fi @@ -72,4 +71,5 @@ ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/ping/ping3 /usr/li ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/disk-smart/disk-smart3 /usr/lib64/nagios/plugins/disk-smart setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_icmp -setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_ping \ No newline at end of file +setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_ping +setcap 'cap_net_raw+ep' "$(which ping)" \ No newline at end of file