Write version into Homepage_version.txt file after update

Version file is now written/updated after updating to the newest version.
This commit is contained in:
Scorpoon 2024-05-04 12:49:21 +02:00 committed by GitHub
parent 6cb9e1db0a
commit 0a4412f01f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,6 +76,7 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}
pnpm install
pnpm build
systemctl start homepage
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Updated Homepage to v${RELEASE}"
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"