Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Unraid Auto Dataset Watcher & Converter v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ stop_docker_containers() {
done <<< "$bindmounts" # send bindmounts into the loop

if [ "$stop_container" = true ]; then
docker stop "$container"
if [ "$dry_run" != "yes" ]; then
docker stop "$container_name"
else
echo "Dry Run: Docker container $container_name would be stopped"
fi
stopped_containers+=("$container_name")
else
echo "Container ${container_name} is not required to be stopped as it is already a separate dataset."
Expand Down