From bcaf34fa9676fc215fdc2bb466afce3d9fec3511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sat, 29 Mar 2025 15:12:52 +0100 Subject: [PATCH] Fix release parsing (#3484) --- ct/homepage.sh | 2 +- install/homepage-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/homepage.sh b/ct/homepage.sh index 487b8abbd..1afb55d80 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -40,7 +40,7 @@ function update_script() { if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then msg_info "Updating Homepage to v${RELEASE} (Patience)" systemctl stop homepage - wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz + curl -fsSL "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz") tar -xzf v${RELEASE}.tar.gz rm -rf v${RELEASE}.tar.gz cp -r homepage-${RELEASE}/* /opt/homepage/ diff --git a/install/homepage-install.sh b/install/homepage-install.sh index f96c0d40a..1b7ba5a73 100644 --- a/install/homepage-install.sh +++ b/install/homepage-install.sh @@ -32,7 +32,7 @@ msg_ok "Installed Node.js" LOCAL_IP=$(hostname -I | awk '{print $1}') RELEASE=$(curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing Homepage v${RELEASE} (Patience)" -wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz +curl -fsSL "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz" -o $(basename "https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz") $STD tar -xzf v${RELEASE}.tar.gz rm -rf v${RELEASE}.tar.gz mkdir -p /opt/homepage/config