File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -270,16 +270,18 @@ killoff
270270 $mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
271271 --silent \
272272 -e " show create user" )
273- # shellcheck disable=SC2016
274- [[ " ${createuser// \' / \` } " =~ ' CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || die " healtheck wasn't created how I was expected"
273+ # shellcheck disable=SC2016,SC2076
274+ [[ " ${createuser// \' / \` } " =~ ' CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || \
275+ [[ " ${createuser// \' / \` } " =~ ' CREATE USER `healthcheck`@`127.0.0.1` IDENTIFIED' ]] || die " healtheck wasn't created how I was expected"
275276
276277 grants=" $( docker exec --user mysql -i \
277278 $cname \
278279 $mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
279280 --silent \
280281 -e show\ grants) "
281282
282- [[ " ${grants// \' / \` } " =~ GRANT\ USAGE\ ON\ * .* \ TO\ \` healthcheck\` @\` ::1\` ]] || die " healthcheck wasn't granted what I was expected"
283+ [[ " ${grants// \' / \` } " =~ GRANT\ USAGE\ ON\ * .* \ TO\ \` healthcheck\` @\` ::1\` ]] || \
284+ [[ " ${grants// \' / \` } " =~ GRANT\ USAGE\ ON\ * .* \ TO\ \` healthcheck\` @\` 127.0.0.1\` ]] || die " healthcheck wasn't granted what I was expected"
283285 killoff
284286
285287 ;&
You can’t perform that action at this time.
0 commit comments