mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Fix Script Homepage: add version during build step (#1155)
* Make variables exported * Auto-yes update-browserslist-db
This commit is contained in:
parent
ff660eaabb
commit
7c0f85d0b3
@ -50,8 +50,10 @@ function update_script() {
|
|||||||
cp -r homepage-${RELEASE}/* /opt/homepage/
|
cp -r homepage-${RELEASE}/* /opt/homepage/
|
||||||
rm -rf homepage-${RELEASE}
|
rm -rf homepage-${RELEASE}
|
||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
npx update-browserslist-db@latest >/dev/null 2>&1
|
npx --yes update-browserslist-db@latest >/dev/null 2>&1
|
||||||
pnpm install >/dev/null 2>&1
|
pnpm install >/dev/null 2>&1
|
||||||
|
export NEXT_PUBLIC_VERSION="v$RELEASE"
|
||||||
|
export NEXT_PUBLIC_REVISION="source"
|
||||||
pnpm build >/dev/null 2>&1
|
pnpm build >/dev/null 2>&1
|
||||||
systemctl start homepage
|
systemctl start homepage
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
|
@ -43,6 +43,8 @@ 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
|
||||||
|
export NEXT_PUBLIC_VERSION="v$RELEASE"
|
||||||
|
export NEXT_PUBLIC_REVISION="source"
|
||||||
$STD pnpm build
|
$STD 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