Skip to content

Commit

Permalink
fix(apps/installer): update for Debian 12 using mysql (azerothcore#19649
Browse files Browse the repository at this point in the history
)

* fix(apps/installer): update for Debian 11 and 12 using mysql

* drop Debian 11 due to OpenSSL 1.1.1 beeing deprecated already
  • Loading branch information
sudlud authored Aug 24, 2024
1 parent 30a7901 commit d4aca0b
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions apps/installer/includes/os_configs/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@ if ! command -v lsb_release &>/dev/null ; then
fi

DEBIAN_VERSION=$(lsb_release -sr)
DEBIAN_VERSION_MIN="12"

if [[ $DEBIAN_VERSION -lt $DEBIAN_VERSION_MIN ]]; then
echo "########## ########## ##########"
echo ""
echo " using unsupported Debian version" $DEBIAN_VERSION
echo " please update to Debian" $DEBIAN_VERSION_MIN "or later"
echo ""
echo "########## ########## ##########"
fi

sudo apt-get update -y

sudo apt-get install -y gdbserver gdb unzip curl \
libncurses-dev libreadline-dev clang g++ \
gcc git cmake make ccache
gcc git cmake make ccache \
default-libmysqlclient-dev libssl-dev libbz2-dev \
libboost-all-dev gnupg wget

if [[ $DEBIAN_VERSION -eq "10" ]]; then
sudo apt-get install -y default-libmysqlclient-dev libssl-dev libreadline-dev libncurses-dev mariadb-server
libboost-system1.6*-dev libboost-filesystem1.6*-dev libboost-program-options1.6*-dev libboost-iostreams1.6*-dev \
else # Debian 8 and 9 should work using this
sudo apt-get install -y libmysqlclient-dev libssl1.0-dev mysql-server
fi
# run noninteractive install for MYSQL 8.4 LTS
wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i ./mysql-apt-config_0.8.32-1_all.deb
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server

0 comments on commit d4aca0b

Please sign in to comment.