From 0e28a77e1f442cd6b61ea0bb8ab814da9e75db4d Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Wed, 22 May 2024 10:07:10 +1000 Subject: [PATCH] pass --- tfoms-patient/install.sh | 7 +------ tfoms-patient/restart.sh | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100755 tfoms-patient/restart.sh diff --git a/tfoms-patient/install.sh b/tfoms-patient/install.sh index 291ef06..df1b691 100755 --- a/tfoms-patient/install.sh +++ b/tfoms-patient/install.sh @@ -4,15 +4,10 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor 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 tfoms-patient bash -c "(cd /app/tfoms && flask db upgrade)" +cd /root/medicine-config/tfoms-patient && docker-compose up -d diff --git a/tfoms-patient/restart.sh b/tfoms-patient/restart.sh new file mode 100755 index 0000000..2a1aeb3 --- /dev/null +++ b/tfoms-patient/restart.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +docker-compose stop +docker-compose up -d