From 6748638a33320a552f9d0eb6185022c712bd95ad Mon Sep 17 00:00:00 2001 From: Code-Egg Date: Thu, 8 Aug 2024 11:28:15 +0800 Subject: [PATCH] modified: ols1clk.sh --- ols1clk.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ols1clk.sh b/ols1clk.sh index e8948a3..eeb0495 100755 --- a/ols1clk.sh +++ b/ols1clk.sh @@ -914,9 +914,13 @@ function debian_install_mariadb # exit 1 #fi echoB "${FPACE} - Add MariaDB repo" - - curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-$MARIADBVER" >/dev/null 2>&1 - + if [ "${OSNAMEVER}" = 'UBUNTU24' ]; then + #https://forum.hestiacp.com/t/mariadb-repos-failing/13097 + echoB "${FPACE} - Skip adding MariaDB repo" + else + echoB "${FPACE} - Add MariaDB repo" + curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-$MARIADBVER" >/dev/null 2>&1 + fi #if [ -e /etc/apt/sources.list.d/mariadb.list ]; then # grep -Fq "mirror.mariadb.org" /etc/apt/sources.list.d/mariadb.list >/dev/null 2>&1 # if [ $? != 0 ] ; then