Fix: mariadb repo in update_scripts (#10034)

This commit is contained in:
CanbiZ
2025-12-16 15:11:22 +01:00
committed by GitHub
parent 000c8b5fc9
commit 951fb3d53a
32 changed files with 70 additions and 45 deletions

View File

@@ -28,6 +28,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
setup_mariadb
RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_error "Currently we don't provide an update function for this ${APP}."