-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2576 from cloudfoundry/pr_fix_mariadb_connector_u…
…pgrade Update mariadb connector packaging script to allow upgrades to 3.4
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 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 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,15 +1,15 @@ | ||
# abort script on any command that exit with a non zero value | ||
set -e | ||
|
||
( | ||
set -e | ||
tar xzf mysql/mariadb-connector-c-*-src.tar.gz | ||
cd mariadb-connector-c-*-src | ||
mkdir bld | ||
cd bld | ||
cmake .. -DCMAKE_INSTALL_PREFIX=${BOSH_INSTALL_TARGET} | ||
make | ||
make install | ||
) | ||
|
||
mkdir -p ${BOSH_INSTALL_TARGET}/bin/ | ||
cp mysql-customization/mariadb_config-wrapper.sh ${BOSH_INSTALL_TARGET}/bin/ | ||
|
||
tar xzf mysql/mariadb-connector-c-*-src.tar.gz | ||
cd mariadb-connector-c-*-src | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX=${BOSH_INSTALL_TARGET} \ | ||
-DDEFAULT_SSL_VERIFY_SERVER_CERT=0 | ||
# ^ Needed for mariadb-connector-c >3.4.0 due to changes in default TLS mode. May be removable if mysql2 gem gets updated: https://github.com/brianmario/mysql2/issues/1379 | ||
|
||
make | ||
make install |