This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
idhub-docker/build__instance-autotest.sh
2024-02-05 20:00:45 +01:00

36 lines
662 B
Bash
Executable file

#!/bin/sh
set -e
set -u
# DEBUG
set -x
main() {
cd "$(dirname "${0}")"
# includes functions:
# common_start
# common_end
. ./build__common.sh
target='instance-autotest'
idhub1="idhub__${target}"
common_start
# no data persistence: cleanup previous possible data
rm -rf "./${idhub1}" "./${idhub2}"
# detect if is new
if [ ! -f "./${idhub1}" ]; then
echo 'Detected new deployment, recreating idhub git repo'
cp -rp IdHub "${idhub1}"
rm -f "${idhub1}/db.sqlite3"
fi
common_end
}
main "${@}"