From d0c57f5f05ed0ed1122b680383ed2cede631892a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:06:44 +0100 Subject: [PATCH] Final Fix Signed-off-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/homarr.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ct/homarr.sh b/ct/homarr.sh index acb54ee9..47ce7a04 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +c#!/usr/bin/env bash source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) @@ -68,13 +68,16 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v msg_info "Updating ${APP} to ${RELEASE}" cp /opt/homarr/.env /opt/.env + cp -a /opt/homarr/data /opt/ + rm -rf /opt/homarr wget -q "https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.zip" unzip -q v${RELEASE}.zip mv homarr-${RELEASE} /opt/homarr mv /opt/.env /opt/homarr/.env - yarn install - yarn build - yarn db:migrate + mv /opt/data /opt/homarr/ + yarn install &>/dev/null + yarn build &>/dev/null + yarn db:migrate &>/dev/null echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}"