mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-11 18:29:17 +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)
|
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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user