1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-05-15 15:36:57 +10:00
parent b165866c96
commit b40dd8076c
4 changed files with 3 additions and 6 deletions

View File

@ -11,11 +11,6 @@ then
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres
fi 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 read -p "Enter organization name: " ORGANIZATION_NAME
SECRET_KEY=$(openssl rand -base64 32) SECRET_KEY=$(openssl rand -base64 32)

View File

@ -3,6 +3,7 @@
set -e set -e
export LC_ALL=C export LC_ALL=C
mkdir -p /root/medicine-backups/
cd /root/medicine-backups/ cd /root/medicine-backups/
weekday_number=$(date +%u) weekday_number=$(date +%u)

View File

@ -3,6 +3,7 @@
set -e set -e
export LC_ALL=C export LC_ALL=C
mkdir -p /root/medicine-backups/
cd /root/medicine-backups/ cd /root/medicine-backups/
weekday_number=$(date +%u) weekday_number=$(date +%u)

View File

@ -15,4 +15,4 @@ EOT
cd /root/medicine-config/tfoms-patient cd /root/medicine-config/tfoms-patient
docker-compose up -d 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)"