mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-28 12:50:17 +00:00
Fix release parsing (#3484)
This commit is contained in:
parent
87106a60c3
commit
bcaf34fa96
@ -40,7 +40,7 @@ function update_script() {
|
|||||||
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
||||||
msg_info "Updating Homepage to v${RELEASE} (Patience)"
|
msg_info "Updating Homepage to v${RELEASE} (Patience)"
|
||||||
systemctl stop homepage
|
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
|
tar -xzf v${RELEASE}.tar.gz
|
||||||
rm -rf v${RELEASE}.tar.gz
|
rm -rf v${RELEASE}.tar.gz
|
||||||
cp -r homepage-${RELEASE}/* /opt/homepage/
|
cp -r homepage-${RELEASE}/* /opt/homepage/
|
||||||
|
@ -32,7 +32,7 @@ msg_ok "Installed Node.js"
|
|||||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
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) }')
|
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)"
|
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
|
$STD tar -xzf v${RELEASE}.tar.gz
|
||||||
rm -rf v${RELEASE}.tar.gz
|
rm -rf v${RELEASE}.tar.gz
|
||||||
mkdir -p /opt/homepage/config
|
mkdir -p /opt/homepage/config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user