From 87c4a50069848178e3f0efb2aa71517561198a17 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Mon, 6 Jan 2025 17:09:41 +0100 Subject: [PATCH] Alertmanager: Changed the way on how we move and delete files --- install/prometheus-alertmanager-install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install/prometheus-alertmanager-install.sh b/install/prometheus-alertmanager-install.sh index 10d20c7b..524b7edb 100644 --- a/install/prometheus-alertmanager-install.sh +++ b/install/prometheus-alertmanager-install.sh @@ -26,9 +26,8 @@ mkdir -p /etc/alertmanager mkdir -p /var/lib/alertmanager wget -q https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz tar -xf alertmanager-${RELEASE}.linux-amd64.tar.gz -cd alertmanager-${RELEASE}.linux-amd64 -mv alertmanager amtool /usr/local/bin/ -mv alertmanager.yml /etc/alertmanager/alertmanager.yml +mv alertmanager-${RELEASE}.linux-amd64/alertmanager alertmanager-${RELEASE}.linux-amd64/amtool /usr/local/bin/ +mv alertmanager-${RELEASE}.linux-amd64/alertmanager.yml /etc/alertmanager/alertmanager.yml echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Prometheus Alertmanager" @@ -61,5 +60,5 @@ customize msg_info "Cleaning up" $STD apt-get -y autoremove $STD apt-get -y autoclean -rm -rf ../alertmanager-${RELEASE}.linux-amd64 ../alertmanager-${RELEASE}.linux-amd64.tar.gz +rm -rf alertmanager-${RELEASE}.linux-amd64 alertmanager-${RELEASE}.linux-amd64.tar.gz msg_ok "Cleaned"