From e4d9f69e3f9a298ab8af103a40845f42a92aa355 Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Sun, 21 Jul 2024 12:27:53 +0200 Subject: [PATCH] Updated start/stop scripts to use docker compose, as docker-compose has been deprecated --- naspi/all-start.sh | 4 ++++ naspi/all-stop.sh | 4 ++++ naspi/startall.sh | 10 ---------- 3 files changed, 8 insertions(+), 10 deletions(-) create mode 100755 naspi/all-start.sh create mode 100755 naspi/all-stop.sh delete mode 100755 naspi/startall.sh diff --git a/naspi/all-start.sh b/naspi/all-start.sh new file mode 100755 index 0000000..77fef89 --- /dev/null +++ b/naspi/all-start.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# will skip folders with a leading "_" (indicating not used) +for d in ./[^_]*/ ; do (cd $d && docker compose up -d && cd ..); done diff --git a/naspi/all-stop.sh b/naspi/all-stop.sh new file mode 100755 index 0000000..e04e026 --- /dev/null +++ b/naspi/all-stop.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# will skip folders with a leading "_" (indicating not used) +for d in ./[^_]*/ ; do (cd $d && docker compose down && cd ..); done diff --git a/naspi/startall.sh b/naspi/startall.sh deleted file mode 100755 index f6c143e..0000000 --- a/naspi/startall.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -if [ $(basename $(readlink $PWD)) != $(hostname) ]; then - echo "Incorrect directory for host" - exit 1 -fi - -# will skip folders with a leading "_" (indicating not used) - -for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done