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:
@docker-compose up -d
remove:
@docker-compose down -v
@chmod +x confirm_remove.sh
@./confirm_remove.sh
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