diff --git a/ct/homepage.sh b/ct/homepage.sh index d2f913a2d..0e3ef6926 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -50,16 +50,16 @@ function update_script() { cp -r homepage-${RELEASE}/* /opt/homepage/ rm -rf homepage-${RELEASE} cd /opt/homepage - npx update-browserslist-db@latest - pnpm install - export NEXT_PUBLIC_VERSION=v$RELEASE - export NEXT_PUBLIC_REVISION='source' - pnpm build + npx update-browserslist-db@latest >/dev/null 2>&1 + pnpm install >/dev/null 2>&1 + NEXT_PUBLIC_VERSION=v$RELEASE + NEXT_PUBLIC_REVISION='source' + pnpm build >/dev/null 2>&1 systemctl start homepage echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated Homepage to v${RELEASE}" else - msg_ok "No update required. ${APP} is already at ${RELEASE}" + msg_ok "No update required. ${APP} is already at v${RELEASE}" fi exit } diff --git a/install/homepage-install.sh b/install/homepage-install.sh index 906e524a0..85414ab3e 100644 --- a/install/homepage-install.sh +++ b/install/homepage-install.sh @@ -43,8 +43,9 @@ rm -rf homepage-${RELEASE} cd /opt/homepage cp /opt/homepage/src/skeleton/* /opt/homepage/config $STD pnpm install -$STD export NEXT_PUBLIC_VERSION=v$RELEASE -$STD export NEXT_PUBLIC_REVISION='source' $STD pnpm build +$STD NEXT_PUBLIC_VERSION=v$RELEASE +$STD NEXT_PUBLIC_REVISION='source' +$STD pnpm build echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Homepage v${RELEASE}"