Compare commits

..

3 Commits

Author SHA1 Message Date
deac51c69e renamed container starting script
added container stopping script
2023-02-24 16:05:47 +01:00
46eaa985c7 Merge branch 'master' of ssh://git.szimnau.de:222/fabian/sync 2023-02-24 16:04:50 +01:00
3ed529867c improved starting git containers
added script for stopping git containers
2022-12-13 15:09:31 +01:00
2 changed files with 20 additions and 2 deletions

19
scripts/downContainers.sh Executable file
View File

@ -0,0 +1,19 @@
#!/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

View File

@ -9,7 +9,7 @@ fi
# echo $DOCKER_ROOT; # echo $DOCKER_ROOT;
for subdir in $DOCKER_ROOT/*; do for subdir in $DOCKER_ROOT/*; do
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" ]]; then if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
continue; continue;
fi fi
# echo $subdir; # echo $subdir;
@ -17,4 +17,3 @@ for subdir in $DOCKER_ROOT/*; do
# echo $(pwd); # echo $(pwd);
docker-compose up -d; docker-compose up -d;
done done