Skip to content

Commit

Permalink
Set node_exporter opts on update as well
Browse files Browse the repository at this point in the history
  • Loading branch information
arlake228 committed May 15, 2024
1 parent 8943ee3 commit 930da38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ case "$1" in
configure)
# check if installation or update, where version is a parameter
chmod 755 /usr/lib/perfsonar/host_metrics/perfsonar_host_exporter
#set node_exporter opts
bash /usr/lib/perfsonar/host_metrics/exporter_opts.sh
if [ -z "$2" ]; then

#set node_exporter opts
bash /usr/lib/perfsonar/host_metrics/exporter_opts.sh

#enable exporters - ignore errors for docker build env
systemctl daemon-reload || :
systemctl enable node_exporter.service || :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ if [ "$1" = "1" ]; then
#Enable and restart apache for reverse proxy
systemctl enable httpd
systemctl restart httpd
else
#update node_exporter to monitor pS processes
%{pkg_install_base}/exporter_opts.sh
fi

%preun
Expand Down

0 comments on commit 930da38

Please sign in to comment.