Final Fix

Signed-off-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
CanbiZ 2024-11-07 22:06:44 +01:00 committed by GitHub
parent e4b948eda5
commit d0c57f5f05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster)
@ -68,13 +68,16 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
msg_info "Updating ${APP} to ${RELEASE}" msg_info "Updating ${APP} to ${RELEASE}"
cp /opt/homarr/.env /opt/.env 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" wget -q "https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.zip"
unzip -q v${RELEASE}.zip unzip -q v${RELEASE}.zip
mv homarr-${RELEASE} /opt/homarr mv homarr-${RELEASE} /opt/homarr
mv /opt/.env /opt/homarr/.env mv /opt/.env /opt/homarr/.env
yarn install mv /opt/data /opt/homarr/
yarn build yarn install &>/dev/null
yarn db:migrate yarn build &>/dev/null
yarn db:migrate &>/dev/null
echo "${RELEASE}" >/opt/${APP}_version.txt echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"