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

main
ben 1 year ago
parent 50b9b13d81
commit fceec14e4c

@ -76,6 +76,7 @@ case ${ACTION} in
docker-compose -f /opt/docker2/compose/nodered-app/docker-compose.yml up -d
;;
"rm")
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
CONTAINER_IDS=$(docker ps -a --filter "ancestor=${APP_NAME}" --format '{{.ID}}')
echo "Stopping and removing containers..."
for ID in $CONTAINER_IDS; do

Loading…
Cancel
Save