-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,12 @@ | |
} | ||
}, | ||
"runtime" : { | ||
"recommends" : { | ||
"DBD::MariaDB" : "0", | ||
"DBD::mysql" : "0" | ||
}, | ||
"requires" : { | ||
"Class::Accessor::Lite" : "0", | ||
"DBD::mysql" : "0", | ||
"DBI" : "0", | ||
"File::Copy::Recursive" : "0", | ||
"File::Temp" : "0", | ||
|
@@ -82,11 +85,11 @@ | |
"John Napiorkowski <[email protected]>", | ||
"Kazuho Oku <[email protected]>", | ||
"Kazuho Oku <[email protected]>", | ||
"Masayuki Matsuki <[email protected]>", | ||
"Matthew Horsfall <[email protected]>", | ||
"NAKAGAWA Masaki <[email protected]>", | ||
"Naoto Nakamura <[email protected]>", | ||
"Petr Písař <[email protected]>", | ||
"Songmu <[email protected]>", | ||
"Yoshikazu Sawa <[email protected]>", | ||
"Yusuke Watase <[email protected]>", | ||
"Zhenjun Wang <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
if [[ $DATABASE_ADAPTER =~ (mariadb|mysql-(5\.[67]|8\.0)) ]]; then | ||
if [[ $DATABASE_ADAPTER =~ (mariadb|mysql-(5\.7|8\.0)) ]]; then | ||
sudo service mysql stop | ||
sudo apt-get install software-properties-common | ||
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B7B3B788A8D3785C | ||
if [[ $DATABASE_ADAPTER =~ mariadb ]]; then | ||
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B7B3B788A8D3785C | ||
# https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/ | ||
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server | ||
sudo apt-get install libmariadb-dev | ||
sudo apt-get update -q | ||
sudo apt-get install -q --yes --force-yes -f --option DPkg::Options::=--force-confnew mariadb-server libmariadb-dev | ||
sudo mariadb-upgrade | ||
elif [[ $DATABASE_ADAPTER =~ mysql-(5\.[67]|8\.0) ]]; then | ||
elif [[ $DATABASE_ADAPTER =~ mysql-(5\.7|8\.0) ]]; then | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29 | ||
# XXX: The switch to mysql 5.7 is not currently working.... | ||
cat <<EOC | sudo debconf-set-selections | ||
mysql-apt-config mysql-apt-config/select-server select $DATABASE_ADAPTER | ||
mysql-apt-config mysql-apt-config/repo-distro select ubuntu | ||
mysql-apt-config mysql-apt-config/repo-codename select bionic | ||
mysql-apt-config mysql-apt-config/repo-distro select ubuntu | ||
EOC | ||
wget https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb | ||
sudo dpkg --install mysql-apt-config_0.8.29-1_all.deb | ||
sudo apt-get update -q | ||
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server | ||
sudo mysql_upgrade | ||
sudo apt-get install -q --yes --option Dpkg::Options::=--force-confnew mysql-server libmysqlclient-dev | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters