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__pilot-xo9b.sh
pedro bfd6a92d6c rename from pilot test to autotest instance
differentiate between instance and pilot

build common arg is target (which can be pilot or instance)
2024-02-05 20:00:30 +01:00

33 lines
639 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='pilot-xo9b'
common_start
# detect if is new
if [ ! -f "./${idhub1}" ] && [ ! -f "./${idhub2}" ]; then
echo 'Detected new deployment, recreating git repos idhub1 and idhub2'
cp -rp IdHub "${idhub1}"
rm -f "${idhub1}/db.sqlite3"
cp -rp IdHub "${idhub2}"
rm -f "${idhub2}/db.sqlite3"
fi
common_end
}
main "${@}"