mirror of
https://github.com/bitnami/containers.git
synced 2026-03-20 14:58:20 +08:00
tests: make sed a little resilient to whitespaces
This commit is contained in:
@@ -176,8 +176,8 @@ cleanup_environment
|
||||
container_create_with_host_volumes standalone -d
|
||||
|
||||
# modify my.cnf
|
||||
container_exec standalone sed -i 's|[#]*max_allowed_packet=.*|max_allowed_packet=64M|' $VOL_PREFIX/conf/my.cnf
|
||||
container_exec standalone sed -i 's|[#]*bind-address=.*|bind-address=0.0.0.0|' $VOL_PREFIX/conf/my.cnf
|
||||
container_exec standalone sed -i 's|^[#]*[ ]*max_allowed_packet[ ]*=.*|max_allowed_packet=64M|' $VOL_PREFIX/conf/my.cnf
|
||||
container_exec standalone sed -i 's|^[#]*[ ]*bind-address[ ]*=.*|bind-address=0.0.0.0|' $VOL_PREFIX/conf/my.cnf
|
||||
|
||||
# stop and remove container
|
||||
container_remove standalone
|
||||
|
||||
Reference in New Issue
Block a user