From b40dd8076c5b66feae872738ac4927f61065ddc6 Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Wed, 15 May 2024 15:36:57 +1000 Subject: [PATCH] pass --- bash_scripts/install-remd.sh | 5 ----- medicine-remd/backup_database.sh | 1 + medicine/backup_database.sh | 1 + tfoms-patient/install.sh | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bash_scripts/install-remd.sh b/bash_scripts/install-remd.sh index 5c70350..6365428 100755 --- a/bash_scripts/install-remd.sh +++ b/bash_scripts/install-remd.sh @@ -11,11 +11,6 @@ then docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres fi -#if docker exec -it medicine-stack-postgres psql -lqt --username=postgres | cut -d \| -f 1 | grep -qw medicine_remd; then -#else -# docker exec -it medicine-stack-postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres -#fi - read -p "Enter organization name: " ORGANIZATION_NAME SECRET_KEY=$(openssl rand -base64 32) diff --git a/medicine-remd/backup_database.sh b/medicine-remd/backup_database.sh index 329ff68..13cd808 100755 --- a/medicine-remd/backup_database.sh +++ b/medicine-remd/backup_database.sh @@ -3,6 +3,7 @@ set -e export LC_ALL=C +mkdir -p /root/medicine-backups/ cd /root/medicine-backups/ weekday_number=$(date +%u) diff --git a/medicine/backup_database.sh b/medicine/backup_database.sh index fa8af2e..2c275da 100755 --- a/medicine/backup_database.sh +++ b/medicine/backup_database.sh @@ -3,6 +3,7 @@ set -e export LC_ALL=C +mkdir -p /root/medicine-backups/ cd /root/medicine-backups/ weekday_number=$(date +%u) diff --git a/tfoms-patient/install.sh b/tfoms-patient/install.sh index e6e0b7e..291ef06 100755 --- a/tfoms-patient/install.sh +++ b/tfoms-patient/install.sh @@ -15,4 +15,4 @@ EOT cd /root/medicine-config/tfoms-patient docker-compose up -d -docker-compose run --rm app bash -c "(cd /app/tfoms && flask db upgrade)" +docker-compose run --rm tfoms-patient bash -c "(cd /app/tfoms && flask db upgrade)"