mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-11 10:19:16 +00:00
Final Fix
Signed-off-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
parent
e4b948eda5
commit
d0c57f5f05
11
ct/homarr.sh
11
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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user