Skip to content

Commit

Permalink
modified centos-installScript
Browse files Browse the repository at this point in the history
modified   fedora-installScript
modified   ubuntu-installScript
  • Loading branch information
cjy37 committed Oct 18, 2014
1 parent 3477eca commit 5b0e1b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions centos-installScript
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ function setupMysql()
echo "install Mysql"
echo "------------------------------------"

echo '# MariaDB 10.1 CentOS repository list - created 2014-10-17 07:52 UTC
echo '# MariaDB 10.0 CentOS repository list - created 2014-10-17 07:52 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1' > /etc/yum.repos.d/MariaDB.repo

Expand Down
8 changes: 4 additions & 4 deletions fedora-installScript
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,21 @@ function setupMysql()

if [ "$vers" = "19" ]; then

echo '# MariaDB 10.1 Fedora repository list - created 2014-10-17 08:04 UTC
echo '# MariaDB 10.0 Fedora repository list - created 2014-10-17 08:04 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/fedora19-amd64
baseurl = http://yum.mariadb.org/10.0/fedora19-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1' | sudo tee /etc/yum.repos.d/MariaDB.repo

elif [ "$vers" = "20" ]; then

echo '# MariaDB 10.1 Fedora repository list - created 2014-10-17 08:06 UTC
echo '# MariaDB 10.0 Fedora repository list - created 2014-10-17 08:06 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/fedora20-amd64
baseurl = http://yum.mariadb.org/10.0/fedora20-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1' | sudo tee /etc/yum.repos.d/MariaDB.repo

Expand Down
2 changes: 1 addition & 1 deletion ubuntu-installScript
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function setupMysql()

sudo apt-get install -y python-software-properties
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.1/ubuntu precise main'
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main'

sudo apt-get update -y
sudo apt-get install -y mariadb-server mariadb-client libmariadbd*-dev
Expand Down

0 comments on commit 5b0e1b8

Please sign in to comment.