diff --git a/bash_scripts/install-remd.sh b/bash_scripts/install-remd.sh index 8d96c11..6fae94b 100755 --- a/bash_scripts/install-remd.sh +++ b/bash_scripts/install-remd.sh @@ -4,8 +4,12 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor docker pull docker.med-logic.ru/medicine-remd:latest -cd /root/medicine-config/medicine-stack -docker-compose exec postgres psql -c 'CREATE DATABASE IF NOT EXISTS medicine_remd' --username=postgres +read -r -p "Create database? [y/N] " prompt +if [[ $prompt =~ [yY](es)* ]] +then + cd /root/medicine-config/medicine-stack + docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres +fi read -p "Enter organization name: " ORGANIZATION_NAME