diff options
Diffstat (limited to 'database/mariadb/PREPARE')
-rwxr-xr-x | database/mariadb/PREPARE | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/database/mariadb/PREPARE b/database/mariadb/PREPARE index c605187332..cb0d4390ed 100755 --- a/database/mariadb/PREPARE +++ b/database/mariadb/PREPARE @@ -1,2 +1,18 @@ +. ${GRIMOIRE}/FUNCTIONS && + +# +# This block is required for proper configuration procedure for users with 5.2 +# branch installed after adding multiversion functionality to the spell and +# prevents previous branch from resetting to a new default value on ``cast -r'' +# +persistent_read $SPELL MARIADB_BRANCH MARIADB_BRANCH || true && + +if [[ -z "$MARIADB_BRANCH" ]]; then + persistent_add MARIADB_BRANCH && + local MARIADB_BRANCH="5.2" +fi && + +prepare_select_branch 5.3 5.2 && + config_query MARIA_TESTS "Install MariaDB testing utilities?" n && config_query MARIA_BENCH "Install MariaDB benchmarking utilities?" n |