devicehub-django/docker-reset.sh
pedro 1834aab36e add docker-reset
with the usual operations to restart everything
2024-09-20 12:19:12 -03:00

23 lines
346 B
Bash
Executable file

#!/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; -*-