11#! /usr/bin/env bash
22source <( curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3- # Copyright (c) 2021-2025 tteck
4- # Author: tteck (tteckster) | Co-Author: MickLesk (Canbiz) | Co-Author: CrazyWolf13
3+ # Copyright (c) 2021-2025 community-scripts ORG
4+ # Author: CrazyWolf13
55# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66# Source: https://homarr.dev/
77
@@ -117,11 +117,12 @@ node apps/nextjs/server.js & PID=$!
117117wait $PID
118118EOF
119119 chmod +x /opt/run_homarr.sh
120- curl -fsSL " https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE} .zip" -o $( basename " https://github.com/homarr-labs/homarr/archive/refs/tags/v${RELEASE} .zip" )
121- unzip -q v${RELEASE} .zip
122- rm -rf v${RELEASE} .zip
120+ $STD command -v jq || $STD apt-get update && $STD apt-get install -y jq
121+ NODE_VERSION=$( curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r ' .engines.node | split(">=")[1] | split(".")[0]' )
122+ NODE_MODULE=" pnpm@$( curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r ' .packageManager | split("@")[1]' ) "
123+ install_node_and_modules
123124 rm -rf /opt/homarr
124- mv homarr-${RELEASE} /opt/ homarr
125+ fetch_and_deploy_gh_release " homarr-labs/ homarr"
125126 mv /opt/homarr-data-backup/.env /opt/homarr/.env
126127 cd /opt/homarr
127128 $STD pnpm install
@@ -167,4 +168,4 @@ description
167168msg_ok " Completed Successfully!\n"
168169echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
169170echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
170- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :7575${CL} "
171+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :7575${CL} "
0 commit comments