mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-26 18:46:18 +00:00
Alertmanager: Switch to /opt
before updating release
This commit is contained in:
parent
17ed517972
commit
ef7c9d1087
@ -39,11 +39,11 @@ function update_script() {
|
|||||||
msg_ok "Stopped ${APP}"
|
msg_ok "Stopped ${APP}"
|
||||||
|
|
||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
msg_info "Updating ${APP} to v${RELEASE}"
|
||||||
|
cd /opt
|
||||||
wget -q https://github.com/prometheus/alertmanager/releases/download/v${RELEASE}/alertmanager-${RELEASE}.linux-amd64.tar.gz
|
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
|
tar -xf alertmanager-${RELEASE}.linux-amd64.tar.gz
|
||||||
cd alertmanager-${RELEASE}.linux-amd64
|
cd alertmanager-${RELEASE}.linux-amd64
|
||||||
cp -rf alertmanager amtool /usr/local/bin/
|
cp -rf alertmanager amtool /usr/local/bin/
|
||||||
cd ~
|
|
||||||
rm -rf alertmanager-${RELEASE}.linux-amd64 alertmanager-${RELEASE}.linux-amd64.tar.gz
|
rm -rf alertmanager-${RELEASE}.linux-amd64 alertmanager-${RELEASE}.linux-amd64.tar.gz
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
msg_ok "Updated ${APP} to ${RELEASE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user