diff --git a/bin/m2d b/bin/m2d index 94c1704..0fe0118 100755 --- a/bin/m2d +++ b/bin/m2d @@ -386,7 +386,7 @@ function _m2d_sync () local sync_web="m2d-web$(_m2d_env_get_parameter $env_file M2D_PROJECT_SUFFIX)" case $action in 'start') - if [[ -n $(mutagen sync list | grep $sync_name) ]]; then + if [[ -n $(mutagen sync list | grep "^Name: $sync_name$") ]]; then mutagen sync resume $sync_name else mutagen sync create --name=$sync_name \ diff --git a/docker-compose.yml b/docker-compose.yml index 1606825..759ee20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,6 @@ version: '3' +name: "m2d${M2D_PROJECT_SUFFIX:-}" services: web: container_name: "m2d-web${M2D_PROJECT_SUFFIX:-}"