20 lines
405 B
Bash
Executable File
20 lines
405 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# > 0 ]]; then
|
|
DOCKER_ROOT=$1;
|
|
else
|
|
DOCKER_ROOT=$(pwd);
|
|
fi
|
|
# echo $DOCKER_ROOT;
|
|
|
|
for subdir in $DOCKER_ROOT/*; do
|
|
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
|
|
continue;
|
|
fi
|
|
# echo $subdir;
|
|
cd $subdir;
|
|
# echo $(pwd);
|
|
docker-compose down;
|
|
done
|