-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall-MySqlWorkBench.bash
executable file
·33 lines (22 loc) · 1.17 KB
/
Install-MySqlWorkBench.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Importing function run_as_root
source RunAsRoot.bash
# Running as root
run_as_root
VERSION_ID="$(awk -F= '$1=="VERSION_ID" { print $2 ;}' /etc/os-release)"
URL_RPM_MySQL_WorkBench=""
URL_RPM_MySQL_Repository=""
if [ "$VERSION_ID" == "36" ];then
URL_RPM_MySQL_WorkBench="https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-8.0.30-1.fc36.x86_64.rpm"
URL_RPM_MySQL_Repository="https://dev.mysql.com/get/mysql80-community-release-fc36-1.noarch.rpm"
elif [ "$VERSION_ID" == "35" ]; then
URL_RPM_MySQL_WorkBench="https://downloads.mysql.com/archives/get/p/8/file/mysql-workbench-community-8.0.29-1.fc35.x86_64.rpm"
URL_RPM_MySQL_Repository="https://dev.mysql.com/get/mysql80-community-release-fc35-3.noarch.rpm"
elif [ "$VERSION_ID" == "34" ]; then
URL_RPM_MySQL_WorkBench="https://downloads.mysql.com/archives/get/p/8/file/mysql-workbench-community-8.0.27-1.fc34.x86_64.rpm"
URL_RPM_MySQL_Repository="https://dev.mysql.com/get/mysql80-community-release-fc34-4.noarch.rpm"
fi
# Installing MySQL Repository
dnf install --assumeyes "$URL_RPM_MySQL_Repository"
# Installing MySQL WorkBench
dnf install --assumeyes "$URL_RPM_MySQL_WorkBench"