fixed start/stop functionality

pull/1/head
riley 1 year ago
parent abbb6ae29c
commit 6a151f877d

@ -93,7 +93,7 @@ case "${ACTION}" in
;; ;;
"start" | "stop" | "restart") "start" | "stop" | "restart")
APP_NAME="btcpayserver" APP_NAME="btcpayserver"
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${APP_NAME}" --format '{{.ID}}') CONTAINER_IDS=$(docker ps -a | grep ${APP_NAME} | awk '{print $1}')
for ID in $CONTAINER_IDS; do for ID in $CONTAINER_IDS; do
docker "${ACTION}" "${ID}" docker "${ACTION}" "${ID}"
done done

Loading…
Cancel
Save