mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
fix: add homepage version during build step (#1107)
* Set homepage version during build in ct script * Change install script * Split commands to multiple lines for ct script as well * Make sure shellcheck is happy
This commit is contained in:
parent
96f30bf51f
commit
df3919b904
@ -52,7 +52,7 @@ function update_script() {
|
||||
cd /opt/homepage
|
||||
npx update-browserslist-db@latest
|
||||
pnpm install
|
||||
pnpm build
|
||||
NEXT_PUBLIC_VERSION=v$RELEASE NEXT_PUBLIC_REVISION='source' pnpm build
|
||||
systemctl start homepage
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated Homepage to v${RELEASE}"
|
||||
@ -69,4 +69,4 @@ description
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||
|
@ -43,7 +43,7 @@ rm -rf homepage-${RELEASE}
|
||||
cd /opt/homepage
|
||||
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
||||
$STD pnpm install
|
||||
$STD pnpm build
|
||||
$STD NEXT_PUBLIC_VERSION=v$RELEASE NEXT_PUBLIC_REVISION='source' pnpm build
|
||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
msg_ok "Installed Homepage v${RELEASE}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user