mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-11 03:15: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
|
cd /opt/homepage
|
||||||
npx update-browserslist-db@latest
|
npx update-browserslist-db@latest
|
||||||
pnpm install
|
pnpm install
|
||||||
pnpm build
|
NEXT_PUBLIC_VERSION=v$RELEASE NEXT_PUBLIC_REVISION='source' pnpm build
|
||||||
systemctl start homepage
|
systemctl start homepage
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated Homepage to v${RELEASE}"
|
msg_ok "Updated Homepage to v${RELEASE}"
|
||||||
|
@ -43,7 +43,7 @@ rm -rf homepage-${RELEASE}
|
|||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
cp /opt/homepage/src/skeleton/* /opt/homepage/config
|
||||||
$STD pnpm install
|
$STD pnpm install
|
||||||
$STD pnpm build
|
$STD NEXT_PUBLIC_VERSION=v$RELEASE NEXT_PUBLIC_REVISION='source' pnpm build
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed Homepage v${RELEASE}"
|
msg_ok "Installed Homepage v${RELEASE}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user