"docs/git@developer.sourcefind.cn:Fzc7075/nunchaku.git" did not exist on "d4592efc8a7f48379d6057fc53639007683ddd19"
Commit 0f6bdaa6 authored by Patrice-Gaudicheau's avatar Patrice-Gaudicheau
Browse files

feat: implemented user confirmation for safe removal of containers and volumes in Makefile

parent a0161715
...@@ -2,7 +2,9 @@ install: ...@@ -2,7 +2,9 @@ install:
@docker-compose up -d @docker-compose up -d
remove: remove:
@docker-compose down -v @chmod +x confirm_remove.sh
@./confirm_remove.sh
start: start:
@docker-compose start @docker-compose start
......
#!/bin/bash
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
read ans
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
docker-compose down -v
else
echo "Operation cancelled."
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment