From 3d10217599d14ce44e1d1b11fb83197e018e2b10 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 16 Oct 2024 20:39:57 +0200 Subject: [PATCH] docker-reset: remove better the db now that in db dir there are snapshots stored --- docker-reset.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-reset.sh b/docker-reset.sh index cdbb971..bf14db2 100755 --- a/docker-reset.sh +++ b/docker-reset.sh @@ -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:-}