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-lafede.sh

31 lines
515 B
Bash
Raw Normal View History

2024-01-16 09:51:24 +00:00
#!/bin/sh
set -e
set -u
# DEBUG
set -x
main() {
cd "$(dirname "${0}")"
# includes functions:
# common_start
# common_end
. ./build__common.sh
2024-01-16 09:51:24 +00:00
2024-01-16 10:19:55 +00:00
pilot='pilot-lafede'
2024-01-16 09:51:24 +00:00
common_start
2024-01-16 09:51:24 +00:00
# detect if is new
if [ ! -f "./${idhub1}" ]; then
2024-01-16 10:19:55 +00:00
echo 'Detected new deployment, recreating idhub git repo'
2024-01-16 09:51:24 +00:00
cp -rp IdHub "${idhub1}"
rm -f "${idhub1}/db.sqlite3"
fi
common_end
2024-01-16 09:51:24 +00:00
}
main "${@}"