mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 14:58:03 +08:00
tests: make sed a little resilient to whitespaces
This commit is contained in:
@@ -114,8 +114,8 @@ cleanup_environment
|
||||
container_create_with_host_volumes default -d
|
||||
|
||||
# modify redis.conf
|
||||
container_exec default sed -i 's|[#]*[ ]*appendonly[ ]*.*|appendonly yes|' $VOL_PREFIX/conf/redis.conf
|
||||
container_exec default sed -i 's|[#]*[ ]*maxclients[ ]*.*|maxclients 1024|' $VOL_PREFIX/conf/redis.conf
|
||||
container_exec default sed -i 's|^[#]*[ ]*appendonly \+.*|appendonly yes|' $VOL_PREFIX/conf/redis.conf
|
||||
container_exec default sed -i 's|^[#]*[ ]*maxclients \+.*|maxclients 1024|' $VOL_PREFIX/conf/redis.conf
|
||||
|
||||
# stop and remove container
|
||||
container_remove default
|
||||
|
||||
Reference in New Issue
Block a user