From 6ef30fbeb9cd07e53244110e20c9441d102ead28 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 14 Nov 2023 07:31:43 -0500 Subject: [PATCH] Update homarr-install.sh fixes https://github.com/tteck/Proxmox/issues/2054 --- install/homarr-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/homarr-install.sh b/install/homarr-install.sh index 958dc10e..13d97470 100644 --- a/install/homarr-install.sh +++ b/install/homarr-install.sh @@ -36,7 +36,9 @@ $STD npm install -g yarn msg_ok "Installed Node.js/Yarn" msg_info "Installing Homarr (Patience)" -git clone -q https://github.com/ajnart/homarr.git /opt/homarr +mkdir -p /opt/homarr +RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +wget -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt && mv /opt/homarr-${RELEASE} /opt/homarr cd /opt/homarr cp -p /opt/homarr/.env.example /opt/homarr/.env sed -i 's|NEXTAUTH_SECRET="[^"]*"|NEXTAUTH_SECRET="'"$(openssl rand -base64 32)"'"|' /opt/homarr/.env