docker-reset: remove better the db

now that in db dir there are snapshots stored
This commit is contained in:
pedro 2024-10-16 20:39:57 +02:00 committed by Cayo Puigdefabregas
parent d8b6d3ded6
commit 3d10217599

View file

@ -9,11 +9,13 @@ set -u
set -x
main() {
cd "$(dirname "${0}")"
if [ "${DETACH:-}" ]; then
detach_arg='-d'
fi
# remove old database
sudo rm -vf db/*
sudo rm -vfr ./db/*
docker compose down -v
docker compose build
docker compose up ${detach_arg:-}