if [[ ! -z ${VERSION} ]]; then echo -e "Using version ${VERSION}"; else echo -e "Please set the VERSION variable"; exit 0; fi; if [[ -d .git ]] && [[ ${MODFILES} == 0 ]]; then echo -e "Forcing git checkout"; git fetch --all --tags; git checkout tags/${VERSION} -f; elif [[ -d .git ]] && [[ ${MODFILES} == 1 ]]; then echo -e "User modify files enabled"; git fetch --all --tags; git checkout tags/${VERSION}; fi; if [ -f /home/container/requirements.txt ]; then pip install -U --prefix .local -r /home/container/requirements.txt; fi; if [[ ${DBPUSH} == 0 ]]; then echo -e "Running prisma generate"; /usr/local/bin/python -m prisma generate --schema /home/container/mysql-schema.prisma; elif [[ ${DBPUSH} == 1 ]]; then echo -e "Running prisma db push"; /usr/local/bin/python -m prisma migrate deploy --schema /home/container/mysql-schema.prisma; fi; /usr/local/bin/python /home/container/launcher.py;