idhub entrypoint: refactor check_app_is_there

This commit is contained in:
pedro 2024-03-21 13:54:11 +01:00
parent fea4652e88
commit 9a14a3f3da
1 changed files with 8 additions and 0 deletions

View File

@ -103,9 +103,17 @@ main() {
idhub_dir='/opt/idhub' idhub_dir='/opt/idhub'
cd "${idhub_dir}" cd "${idhub_dir}"
check_app_is_there() {
if [ ! -f "./manage.py" ]; then if [ ! -f "./manage.py" ]; then
usage usage
fi fi
}
main() {
idhub_dir='/opt/idhub'
cd "${idhub_dir}"
check_app_is_there
deployment_strategy deployment_strategy