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
270
270
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
271
271
--silent \
272
272
-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"
275
276
276
277
grants=" $( docker exec --user mysql -i \
277
278
$cname \
278
279
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
279
280
--silent \
280
281
-e show\ grants) "
281
282
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"
283
285
killoff
284
286
285
287
;&
You can’t perform that action at this time.
0 commit comments