2024-09-20 15:19:12 +00:00
|
|
|
#!/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
|
2024-09-20 15:20:38 +00:00
|
|
|
sudo rm -vf db/*
|
2024-09-20 15:19:12 +00:00
|
|
|
docker compose down
|
|
|
|
docker compose build
|
|
|
|
docker compose up
|
|
|
|
}
|
|
|
|
|
|
|
|
main "${@}"
|
|
|
|
|
|
|
|
# written in emacs
|
|
|
|
# -*- mode: shell-script; -*-
|