diff --git a/bash_scripts/docker-install.sh b/bash_scripts/docker-install.sh old mode 100644 new mode 100755 diff --git a/bash_scripts/install-medicine.sh b/bash_scripts/install-medicine.sh old mode 100644 new mode 100755 index 941999d..b6736bf --- a/bash_scripts/install-medicine.sh +++ b/bash_scripts/install-medicine.sh @@ -5,7 +5,7 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor docker pull docker.med-logic.ru/medicine-nginx:latest docker pull docker.med-logic.ru/medicine-app:latest -unzip ../backups/medicine.sql.zip ../volumes/files/ +unzip ../backups/medicine.sql.zip -d ../volumes/files/ docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql @@ -14,3 +14,6 @@ if [ ! -f .env ] then cp env.sample .env fi + +docker-compose run --rm app python manage.py migrate --noinput +docker-compose run --rm app python manage.py collectstatic --noinput diff --git a/bash_scripts/install-remd.sh b/bash_scripts/install-remd.sh old mode 100644 new mode 100755 diff --git a/bash_scripts/install.sh b/bash_scripts/install.sh old mode 100644 new mode 100755 diff --git a/medicine/run.sh b/medicine/run.sh index e03ed77..21f0855 100644 --- a/medicine/run.sh +++ b/medicine/run.sh @@ -25,7 +25,6 @@ post_update() { docker-compose run --rm app python manage.py migrate --noinput docker-compose run --rm app python manage.py collectstatic --noinput docker-compose run --rm app python manage.py post_update - docker-compose run --rm app python manage.py catalog2_importdata } docker_cleanup() {