mirror of
https://github.com/bitnami/containers.git
synced 2026-03-20 23:10:53 +08:00
Merge pull request #35 from sameersbn/fix-master-user-default
set default value of `MARIADB_MASTER_USER` to `root`
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
MARIADB_REPLICATION_USER: Replication user. User is created on master on the first boot (default: none).
|
||||
MARIADB_REPLICATION_PASSWORD: Replication users password. Password is set for MARIADB_REPLICATION_USER on master on the first boot (default: none).
|
||||
MARIADB_MASTER_HOST: Replication masters hostname/ip (parameter available only on slave).
|
||||
MARIADB_MASTER_USER: User on replication master with access to MARIADB_DATABASE (parameter available only on slave).
|
||||
MARIADB_MASTER_USER: User on replication master with access to MARIADB_DATABASE. (default: root, parameter available only on slave).
|
||||
MARIADB_MASTER_PASSWORD: Password of user on replication master with access to MARIADB_DATABASE (parameter available only on slave).
|
||||
|
||||
VOLUMES:
|
||||
|
||||
@@ -7,7 +7,7 @@ environment_variables:
|
||||
MARIADB_REPLICATION_USER: "Replication user. User is created on master on the first boot (default: none)."
|
||||
MARIADB_REPLICATION_PASSWORD: "Replication users password. Password is set for MARIADB_REPLICATION_USER on master on the first boot (default: none)."
|
||||
MARIADB_MASTER_HOST: "Replication masters hostname/ip (parameter available only on slave)."
|
||||
MARIADB_MASTER_USER: "User on replication master with access to MARIADB_DATABASE (parameter available only on slave)."
|
||||
MARIADB_MASTER_USER: "User on replication master with access to MARIADB_DATABASE. (default: root, parameter available only on slave)."
|
||||
MARIADB_MASTER_PASSWORD: "Password of user on replication master with access to MARIADB_DATABASE (parameter available only on slave)."
|
||||
volumes:
|
||||
$BITNAMI_APP_VOL_PREFIX/data: "Location of $BITNAMI_APP_NAME data files."
|
||||
|
||||
@@ -97,9 +97,8 @@ configure_replication() {
|
||||
fi
|
||||
|
||||
if [ ! $MARIADB_MASTER_USER ]; then
|
||||
echo "In order to setup a replication slave you need to provide the MARIADB_MASTER_USER as well"
|
||||
echo ""
|
||||
exit -1
|
||||
echo "MARIADB_MASTER_USER not specified. Defaulting to root"
|
||||
MARIADB_MASTER_USER=${MARIADB_MASTER_USER:-root}
|
||||
fi
|
||||
|
||||
if [ ! $MARIADB_DATABASE ]; then
|
||||
|
||||
@@ -207,14 +207,6 @@ cleanup_environment
|
||||
[[ "$output" =~ "you need to provide the MARIADB_MASTER_HOST" ]]
|
||||
}
|
||||
|
||||
@test "Can't setup replication slave without master user" {
|
||||
# create replication slave without specifying MARIADB_MASTER_USER
|
||||
run container_create slave0 \
|
||||
-e MARIADB_REPLICATION_MODE=slave \
|
||||
-e MARIADB_MASTER_HOST=master
|
||||
[[ "$output" =~ "you need to provide the MARIADB_MASTER_USER" ]]
|
||||
}
|
||||
|
||||
@test "Can't setup replication slave without database" {
|
||||
# create replication slave without specifying MARIADB_DATABASE
|
||||
run container_create slave0 \
|
||||
|
||||
Reference in New Issue
Block a user