docker-reset: remove better the db
now that in db dir there are snapshots stored
This commit is contained in:
parent
cd3cc62004
commit
94fd1d685a
|
@ -9,11 +9,13 @@ set -u
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
cd "$(dirname "${0}")"
|
||||||
|
|
||||||
if [ "${DETACH:-}" ]; then
|
if [ "${DETACH:-}" ]; then
|
||||||
detach_arg='-d'
|
detach_arg='-d'
|
||||||
fi
|
fi
|
||||||
# remove old database
|
# remove old database
|
||||||
sudo rm -vf db/*
|
sudo rm -vfr ./db/*
|
||||||
docker compose down -v
|
docker compose down -v
|
||||||
docker compose build
|
docker compose build
|
||||||
docker compose up ${detach_arg:-}
|
docker compose up ${detach_arg:-}
|
||||||
|
|
Loading…
Reference in New Issue