Медицина/Установка: различия между версиями

Материал из Medlogic
Строка 51: Строка 51:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
. /root/medicine-config/bash_scripts/install-remd.sh
. /root/medicine-config/bash_scripts/install-remd.sh
</syntaxhighlight>
=== Устанавливаем сервис проверки полисов ===
<syntaxhighlight lang="bash">
. /root/medicine-config/tfoms-patient/install.sh
</syntaxhighlight>
</syntaxhighlight>



Версия от 05:18, 22 мая 2024

Настройка сервера - Ubuntu, Debian

Все действия выполнять от пользователя root

Устанавливаем git, unzip, vim, openssl

sudo apt-get update && apt-get install --assume-yes git unzip vim openssl openssh-server

Устанавливаем автоматически Docker

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

Ручная установка Docker

Настройка сервера РЕД ОС

Все действия выполнять от пользователя root

Устанавливаем git, unzip, vim, openssl

dnf --assumeyes update && dnf install --assumeyes git unzip vim openssl openssh-server

Автозапуск Docker

systemctl enable docker --now

Ручная установка Docker

Установка системы

Клонируем репозиторий с настройками

cd /root && git clone https://git.med-logic.ru/ilya.muhortov/medicine-config.git

Устанавливаем базовые образы

. /root/medicine-config/bash_scripts/install-base.sh

Устанавливаем МИС Медицина

. /root/medicine-config/bash_scripts/install-medicine.sh

Устанавливаем РЭМД

. /root/medicine-config/bash_scripts/install-remd.sh

Устанавливаем сервис проверки полисов

. /root/medicine-config/tfoms-patient/install.sh

Автообновление

С помощью планировщика задач cron добавить следующие задачи

crontab -e
30 13 * * * /root/medicine-config/medicine-remd/update.sh
50 13 * * * /root/medicine-config/medicine-remd/backup_database.sh
20 13 * * * /root/medicine-config/medicine/update.sh
55 13 * * * /root/medicine-config/medicine/backup_database.sh