add docker-reset
with the usual operations to restart everything
This commit is contained in:
parent
fa59feaf77
commit
1834aab36e
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Copyright (c) 2024 Pedro <copyright@cas.cat>
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
# DEBUG
|
||||||
|
#set -x
|
||||||
|
|
||||||
|
main() {
|
||||||
|
# remove old database
|
||||||
|
sudo rm -v db/*
|
||||||
|
docker compose down
|
||||||
|
docker compose build
|
||||||
|
docker compose up
|
||||||
|
}
|
||||||
|
|
||||||
|
main "${@}"
|
||||||
|
|
||||||
|
# written in emacs
|
||||||
|
# -*- mode: shell-script; -*-
|
Loading…
Reference in New Issue