mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
add 8.0 to mysql script
This commit is contained in:
parent
ab826ecc65
commit
cdb6868bb8
9
mysql.sh
9
mysql.sh
@ -35,7 +35,7 @@ mkdir -p ${YUM_PATH} ${UBUNTU_PATH} ${DEBIAN_PATH}
|
|||||||
if [[ ! -z ${DRY_RUN:-} ]]; then
|
if [[ ! -z ${DRY_RUN:-} ]]; then
|
||||||
export APT_DRY_RUN=1
|
export APT_DRY_RUN=1
|
||||||
fi
|
fi
|
||||||
MYSQL_APT_REPOS=("mysql-5.6" "mysql-5.7" "mysql-tools" "connector-python-2.1")
|
MYSQL_APT_REPOS=("mysql-5.6" "mysql-5.7" "mysql-tools" "connector-python-2.1" "mysql-8.0")
|
||||||
|
|
||||||
base_url="${BASE_URL}/apt/ubuntu"
|
base_url="${BASE_URL}/apt/ubuntu"
|
||||||
for version in ${UBUNTU_VERSIONS[@]}; do
|
for version in ${UBUNTU_VERSIONS[@]}; do
|
||||||
@ -90,12 +90,17 @@ name=MySQL 5.7 Community Server
|
|||||||
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/$elver/x86_64/
|
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/$elver/x86_64/
|
||||||
enabled=1
|
enabled=1
|
||||||
|
|
||||||
|
[mysql80-community-el${elver}]
|
||||||
|
name=MySQL 8.0 Community Server
|
||||||
|
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/$elver/x86_64/
|
||||||
|
enabled=1
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z ${DRY_RUN:-} ]]; then
|
if [[ -z ${DRY_RUN:-} ]]; then
|
||||||
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
|
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
|
||||||
for repo in "mysql-connectors-community" "mysql-tools-community" "mysql56-community" "mysql57-community"; do
|
for repo in "mysql-connectors-community" "mysql-tools-community" "mysql56-community" "mysql57-community" "mysql80-community"; do
|
||||||
for elver in "6" "7"; do
|
for elver in "6" "7"; do
|
||||||
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/${repo}-el${elver}/ ${YUM_PATH}/${repo}-el${elver}/
|
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/${repo}-el${elver}/ ${YUM_PATH}/${repo}-el${elver}/
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user