Merge branch 'master' into dist/eole/2.6.2/master
This commit is contained in:
commit
f375a121ae
|
@ -81,6 +81,7 @@ GenConfig (Mode Normal) -> Database cluster :
|
||||||
If you have only 2 nodes you need to setup an arbitrator, for this follow the tutorial in the eole-galera-arbitrator project page https://forge.cadoles.com/Cadoles/eole-galera-arbitrator
|
If you have only 2 nodes you need to setup an arbitrator, for this follow the tutorial in the eole-galera-arbitrator project page https://forge.cadoles.com/Cadoles/eole-galera-arbitrator
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# How-to for Eole 2.6.2 (From scratch)
|
# How-to for Eole 2.6.2 (From scratch)
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
|
|
|
@ -25,7 +25,6 @@ then
|
||||||
accounts=($(CreoleGet accName))
|
accounts=($(CreoleGet accName))
|
||||||
limits="$(CreoleGet accLimitTarget '')"
|
limits="$(CreoleGet accLimitTarget '')"
|
||||||
accLimits=(${limits// /})
|
accLimits=(${limits// /})
|
||||||
index=0
|
|
||||||
|
|
||||||
previousUsers=($(awk -F ':' '{print $1}' ${readerfile} ))
|
previousUsers=($(awk -F ':' '{print $1}' ${readerfile} ))
|
||||||
|
|
||||||
|
@ -42,13 +41,20 @@ then
|
||||||
else
|
else
|
||||||
ipAddr=($(CreoleGet ipMariaDBLimit))
|
ipAddr=($(CreoleGet ipMariaDBLimit))
|
||||||
ipMask=($(CreoleGet maskMariaDBLimit))
|
ipMask=($(CreoleGet maskMariaDBLimit))
|
||||||
if [[ ${ipMask} == "255.255.255.255" ]]
|
ix=0
|
||||||
|
for ip in ${ipAddr[@]}
|
||||||
|
do
|
||||||
|
if [[ ${ipMask[${ix}]} == "255.255.255.255" ]]
|
||||||
then
|
then
|
||||||
hostsList+=("${ipAddr}")
|
hostsList+=("${ip}")
|
||||||
else
|
else
|
||||||
hostsList+=("${ipAddr}/${ipMask}")
|
hostsList+=("${ip}/${ipMask[${ix}]}")
|
||||||
fi
|
fi
|
||||||
|
ix=$((ix+1))
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
index=0
|
||||||
for hst in ${hostsList[@]}
|
for hst in ${hostsList[@]}
|
||||||
do
|
do
|
||||||
SQL="DROP USER IF EXISTS '${user}'@'${hst}';"
|
SQL="DROP USER IF EXISTS '${user}'@'${hst}';"
|
||||||
|
|
Loading…
Reference in New Issue