diff --git a/tfoms-patient/install.sh b/tfoms-patient/install.sh new file mode 100755 index 0000000..5552cb2 --- /dev/null +++ b/tfoms-patient/install.sh @@ -0,0 +1,18 @@ +set -e + +echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin + +docker pull docker.med-logic.ru/tfoms-patient:latest + +cd /root/medicine-config/medicine-stack +docker-compose exec postgres psql -c 'CREATE DATABASE tfoms_patient' --username=postgres + +read -p "Enter organization name: " ORGANIZATION_NAME + +cat <> /root/medicine-config/tfoms_patient/.env +SENTRY_SITE=$ORGANIZATION_NAME +EOT + +cd /root/medicine-config/tfoms_patient +docker-compose up -d +docker-compose run --rm app bash -c "(cd /app/tfoms && flask db upgrade)" diff --git a/tfoms-patient/update.sh b/tfoms-patient/update.sh old mode 100644 new mode 100755