From 8267106e698eab0c95d16a0e46fbd7333f22aab4 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 29 Apr 2020 13:24:19 +0000 Subject: [PATCH] full_install_osm.sh: minor fix, no sudo for wget node_exporter, required for installation behind proxy Change-Id: Ibf14ea9e7c468df3b67d7eb0d855a97a41fa5250 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 5f267340..47bcdb2d 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -322,11 +322,11 @@ function install_prometheus_nodeexporter(){ echo "Creating user node_exporter" sudo useradd --no-create-home --shell /bin/false node_exporter fi - sudo wget -q https://github.com/prometheus/node_exporter/releases/download/v$PROMETHEUS_NODE_EXPORTER_TAG/node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64.tar.gz -P /tmp/ + wget -q https://github.com/prometheus/node_exporter/releases/download/v$PROMETHEUS_NODE_EXPORTER_TAG/node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64.tar.gz -P /tmp/ sudo tar -C /tmp -xf /tmp/node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64.tar.gz sudo cp /tmp/node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64/node_exporter /usr/local/bin sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter - sudo rm -rf node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64* + sudo rm -rf /tmp/node_exporter-$PROMETHEUS_NODE_EXPORTER_TAG.linux-amd64* sudo cp ${OSM_DEVOPS}/installers/docker/prometheus/node_exporter.service /etc/systemd/system/node_exporter.service sudo systemctl daemon-reload sudo systemctl restart node_exporter -- 2.25.1