bfd6a92d6c
differentiate between instance and pilot build common arg is target (which can be pilot or instance)
31 lines
516 B
Bash
Executable file
31 lines
516 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-lafede'
|
|
|
|
common_start
|
|
|
|
# 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 "${@}"
|