fix(fleet,mysql): switch Fleet to MariaDB, add mysql case to manage_tool_repository

- fleet: use setup_mariadb instead of setup_mysql (MariaDB works fine for
  Fleet and avoids MySQL repo complexity on trixie)
- tools.func: add missing mysql) case block to manage_tool_repository
  (was causing 'Unknown tool repository: mysql' error)
This commit is contained in:
MickLesk
2026-04-05 18:35:51 +02:00
parent 77e1490b7c
commit f7258d5268
2 changed files with 37 additions and 2 deletions

View File

@@ -894,6 +894,41 @@ Suites: $distro_codename-pgdg
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/postgresql.gpg
EOF
return 0
;;
mysql)
if [[ -z "$repo_url" || -z "$gpg_key_url" ]]; then
msg_error "MySQL repository requires repo_url and gpg_key_url"
return 1
fi
cleanup_old_repo_files "mysql"
if ! download_gpg_key "$gpg_key_url" "/etc/apt/keyrings/mysql.gpg" "dearmor"; then
msg_error "Failed to import MySQL GPG key"
return 1
fi
local distro_codename
distro_codename=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)
local mysql_suite="$distro_codename"
if [[ "$distro_id" == "debian" ]]; then
case "$distro_codename" in
trixie | bookworm | bullseye) mysql_suite="$distro_codename" ;;
*) mysql_suite="bookworm" ;;
esac
fi
cat <<EOF >/etc/apt/sources.list.d/mysql.sources
Types: deb
URIs: $repo_url
Suites: $mysql_suite
Components: mysql-$version mysql-tools
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/mysql.gpg
EOF
return 0
;;
@@ -4464,7 +4499,7 @@ function setup_hwaccel() {
msg_info "Configuring: ${gpu_name}"
case "$gpu_type" in
# ────────────────────────────────────────────────────────────────────────
# ──────────<EFBFBD><EFBFBD>──────────────────────────────────────────────────────────────
# Intel Arc GPUs (DG1, DG2, Arc A-series)
# ─────────────────────────────────────────────────────────────────────────
INTEL_ARC)