40fd2aa34e
Change-Id: I43e0beec6508f93a436a150749bfa23571986b9d
13 lines
374 B
Bash
13 lines
374 B
Bash
#!/bin/bash
|
|
|
|
if [[ $1 == *"Ubuntu"* ]]; then
|
|
sudo apt-get install --force-yes -y mysql-client libmysql-java
|
|
elif [[ $1 == *"CentOS"* ]] || [[ $1 == "RedHatEnterpriseServer" ]]; then
|
|
sudo yum install -y mysql
|
|
elif [[ $1 == *"SUSE"* ]]; then
|
|
sudo zypper install mysql-community-server-client mysql-connector-java
|
|
else
|
|
echo "Unknown distribution"
|
|
exit 1
|
|
fi
|