devicehub-django/docker-reset.sh
2024-09-20 12:28:48 -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 -vf db/*
docker compose down
docker compose build
docker compose up
}
main "${@}"
# written in emacs
# -*- mode: shell-script; -*-