fix(ct): add setup_mariadb to update_script for repo updates

When MariaDB is installed with a specific version (e.g. 12.1.1), the
repository URL becomes stale when that version is removed from mirrors.
This causes 'apt update' to fail with 404 errors.

Adding setup_mariadb to update_script ensures the MariaDB repository
is updated to the current version before any apt operations run.

Affected scripts (31):
- 2fauth, apache-guacamole, booklore, bookstack, dolibarr
- domain-monitor, firefly, ghost, glpi, hortusfox
- invoiceninja, itsm-ng, kimai, leantime, librenms
- limesurvey, managemydamnlife, mariadb, monica, passbolt
- paymenter, pelican-panel, phpipam, plant-it, projectsend
- pterodactyl-panel, shinobi, snipeit, wallabag, wavelog, wordpress
This commit is contained in:
CanbiZ
2025-12-16 13:00:44 +01:00
parent 1333624879
commit 7f798effd8
31 changed files with 31 additions and 6 deletions

View File

@ -28,6 +28,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
setup_mariadb
if check_for_gh_release "bookstack" "BookStackApp/BookStack"; then
msg_info "Stopping Apache2"
systemctl stop apache2