Skip to content

Commit

Permalink
fix bug in delete script
Browse files Browse the repository at this point in the history
  • Loading branch information
pacharanero committed Nov 17, 2023
1 parent 4129742 commit f6d68d7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions s/docker-delete-local-data
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ echo "Are you sure you want to continue? (yes/no)"
read -r response

if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
if [[ -d "./data" ]]; then
echo "Deleting local data..."
# shuts down the Docker Compose setup and remove containers and images
docker compose down -v --rmi local # removes the volumes, container and local images
echo "Local data has been deleted."
fi
echo "Deleting local data..."
# shuts down the Docker Compose setup and remove containers and images
docker compose down -v --rmi local # removes the volumes, container and local images
echo "Local data has been deleted."
else
echo "Aborting. No data has been deleted."
fi
Expand Down

0 comments on commit f6d68d7

Please sign in to comment.