mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-28 15:10:17 +00:00
Fix Homepage-Script: Installation/Update (#1129)
* Fix some Parts of Homepage-Script * Fix Install
This commit is contained in:
parent
69ae09346f
commit
c9f4391df0
@ -50,16 +50,16 @@ 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
|
npx update-browserslist-db@latest >/dev/null 2>&1
|
||||||
pnpm install
|
pnpm install >/dev/null 2>&1
|
||||||
export NEXT_PUBLIC_VERSION=v$RELEASE
|
NEXT_PUBLIC_VERSION=v$RELEASE
|
||||||
export NEXT_PUBLIC_REVISION='source'
|
NEXT_PUBLIC_REVISION='source'
|
||||||
pnpm build
|
pnpm build >/dev/null 2>&1
|
||||||
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}"
|
||||||
else
|
else
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
msg_ok "No update required. ${APP} is already at v${RELEASE}"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,9 @@ 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 export NEXT_PUBLIC_VERSION=v$RELEASE
|
$STD NEXT_PUBLIC_VERSION=v$RELEASE
|
||||||
$STD export NEXT_PUBLIC_REVISION='source' $STD pnpm build
|
$STD NEXT_PUBLIC_REVISION='source'
|
||||||
|
$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…
x
Reference in New Issue
Block a user