1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2023-11-25 18:04:57 +10:00
parent a1216ee274
commit f436077acd
3 changed files with 7 additions and 4 deletions

0
cron_tasks.sh Normal file
View File

2
medicine-remd/crontab.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
sudo /bin/bash -c 'echo "30 23 * * * root /root/medicine-config/medicine-remd/update.sh" >> /etc/crontab'

View File

@ -2,11 +2,12 @@
set -e
cd /root/medicine-config/medicine-remd
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine-remd:latest
docker-compose stop
docker-compose up -d
(cd /root/medicine-config/medicine-remd &&
docker-compose stop &&
docker-compose up -d
)
docker rmi $(docker images -f "dangling=true" -q)