fix(bash): repository initialization bugs and update configurations (#22311)

This commit is contained in:
Yehonal
2025-06-17 19:30:51 +02:00
committed by GitHub
parent d3cbce652d
commit 03df002471
5 changed files with 23 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
#!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! command -v lsb_release &>/dev/null ; then
sudo apt-get install -y lsb-release
fi
@@ -22,8 +26,10 @@ sudo apt-get install -y gdbserver gdb unzip curl \
libssl-dev libbz2-dev \
libboost-all-dev gnupg wget
VAR_PATH="$CURRENT_PATH/../../../../var"
# 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
wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb -P "$VAR_PATH"
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i "$VAR_PATH/mysql-apt-config_0.8.32-1_all.deb"
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server libmysqlclient-dev

View File

@@ -1,3 +1,7 @@
#!/usr/bin/env bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! command -v lsb_release &>/dev/null ; then
sudo apt-get install -y lsb-release
fi
@@ -36,9 +40,11 @@ else
libboost-all-dev libbz2-dev libncurses-dev libreadline-dev \
libssl-dev
VAR_PATH="$CURRENT_PATH/../../../../var"
# 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
wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb -P "$VAR_PATH"
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i "$VAR_PATH/mysql-apt-config_0.8.32-1_all.deb"
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server
fi