Fix find command in deploy script to correctly list stack directories
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ cd "$BASE"
|
|||||||
if [ -n "$STACK" ]; then
|
if [ -n "$STACK" ]; then
|
||||||
dirs="$STACK"
|
dirs="$STACK"
|
||||||
else
|
else
|
||||||
dirs="$(find "$HOST" -mindepth 2 -maxdepth 2 -name docker-compose.yml -printf '%h\n' | cut -d/ -f2 | sort -u)"
|
dirs="$(find "$HOST" -mindepth 2 -maxdepth 2 -name docker-compose.yml | cut -d/ -f2 | sort -u)"
|
||||||
|
|
||||||
# Remove stale stacks whose directories were deleted from the repo
|
# Remove stale stacks whose directories were deleted from the repo
|
||||||
stale_dirs="$(docker ps -a \
|
stale_dirs="$(docker ps -a \
|
||||||
|
|||||||
Reference in New Issue
Block a user