diff --git a/bash_scripts/install-remd.sh b/bash_scripts/install-remd.sh index 20c5e1b..bd3fa35 100755 --- a/bash_scripts/install-remd.sh +++ b/bash_scripts/install-remd.sh @@ -5,7 +5,7 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor docker pull docker.med-logic.ru/medicine-remd:latest read -r -p "Create database? [y/N] " response -if [[ $prompt =~ [yY](es)* ]] +if [[ $response =~ ^[Yy](es)?$ ]]; then then docker exec medicine-stack-postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres fi