From deac51c69eefd7ca42d3fc330d6fffeb5ae092ee Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 24 Feb 2023 16:05:47 +0100 Subject: [PATCH] renamed container starting script added container stopping script --- scripts/downContainers.sh | 19 +++++++++++++++++++ scripts/upContainers.sh | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 scripts/downContainers.sh create mode 100755 scripts/upContainers.sh diff --git a/scripts/downContainers.sh b/scripts/downContainers.sh new file mode 100755 index 0000000..e1ccfcc --- /dev/null +++ b/scripts/downContainers.sh @@ -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 diff --git a/scripts/upContainers.sh b/scripts/upContainers.sh new file mode 100755 index 0000000..00d2afe --- /dev/null +++ b/scripts/upContainers.sh @@ -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 up -d; +done