fix: skip external MariaDB repo on trixie, clean stale repo files
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled

- Trixie uses native Debian mariadb packages (external repo has no
  trixie release), so wo_mysql_repo is empty and repo add is skipped
- Clean up old openlitespeed.list and mariadb.list during install so
  they get regenerated with correct GPG keyring paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 11:39:33 +01:00
parent 317181e4be
commit 3585aca1ad
3 changed files with 16 additions and 5 deletions

View File

@@ -859,6 +859,10 @@ wo_init_variables
_run wo_clean_repo
_run wo_download_gpg_keys
# clean up stale repo list files so they get regenerated correctly
rm -f /etc/apt/sources.list.d/openlitespeed.list 2>/dev/null
rm -f /etc/apt/sources.list.d/mariadb.list 2>/dev/null
if [ -z "$wo_force_install" ]; then
# check distribution support
wo_check_distro