Update 'root/usr/libexec/apps/nodered/nodered.sh'

main
ben 1 year ago
parent 77b3c203c5
commit 71df94dc20

@ -73,9 +73,9 @@ case ${ACTION} in
do_install_detail do_install_detail
;; ;;
"rm") "rm")
APP_NAME="nodered"
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null) IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${APP_NAME}" --format '{{.ID}}') [ -z "$IMAGE_NAME" ] && IMAGE_NAME="nodered/node-red:latest"
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${IMAGE_NAME}" --format '{{.ID}}')
echo "Stopping and removing containers..." echo "Stopping and removing containers..."
for ID in $CONTAINER_IDS; do for ID in $CONTAINER_IDS; do
docker stop $ID docker stop $ID

Loading…
Cancel
Save