From 582bfe4a752d1a28e8a81f8b448fe5f5d5f7e77e Mon Sep 17 00:00:00 2001 From: bvdberg01 Date: Sun, 17 Nov 2024 17:51:24 +0100 Subject: [PATCH] Update netbox.sh updated tar.gz to zip and changed update succeeded message --- ct/netbox.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/netbox.sh b/ct/netbox.sh index ac5a072bf..7ddef921a 100644 --- a/ct/netbox.sh +++ b/ct/netbox.sh @@ -72,7 +72,7 @@ if [ ! -d "/opt/netbox-${RELEASE}" ]; then OLD_VERSION_PATH=$(ls -d /opt/netbox-*/) wget -q "https://github.com/netbox-community/netbox/archive/refs/tags/v${RELEASE}.zip" - unzip -q -xzf "v${RELEASE}.tar.gz" -C /opt + unzip -q -xzf "v${RELEASE}.zip" -C /opt ln -sfn "/opt/netbox-${RELEASE}/" /opt/netbox @@ -100,11 +100,11 @@ if [ ! -d "/opt/netbox-${RELEASE}" ]; then msg_ok "Started ${APP}" msg_info "Cleaning up" - rm "v${RELEASE}.tar.gz" + rm "v${RELEASE}.zip" rm -rf "${OLD_VERSION_PATH}" msg_ok "Cleaned" - msg_ok "Updated $APP LXC" + msg_ok "Updated $APP successfully" else msg_ok "No update required. ${APP} is already at ${RELEASE}" fi