From ad5f97dc4c9cceced0a8a6e8621309956b2f2fe5 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 12:17:47 +0300 Subject: [PATCH] readme --- README.md | 3 +++ migration.sh | 9 +++------ task.txt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..331608c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +Склонируй репозиторий git clone +Внимательно заполни конфиг config.txt +Запусти скрипт bash migration diff --git a/migration.sh b/migration.sh index a67c6c7..c998d42 100644 --- a/migration.sh +++ b/migration.sh @@ -6,7 +6,7 @@ then apt update && apt-get install sshpass; fi -set -a # export variables from config.txt test +set -a # export source config.txt set +a # stop exporting @@ -58,9 +58,6 @@ create_and_restore_db change_config - - - evt_full_rsync(){ echo "send $SOURCE_EVT to the destination" sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT" -avz --ignore-existing $SOURCE_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/ $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/ @@ -90,5 +87,5 @@ fonts_rsync(){ fi -systemctl is-active --quiet platform5.service && systemctl start platform5 -systemctl is-active --quiet platform6.service && systemctl start platform6 \ No newline at end of file +systemctl start platform5 +systemctl start platform6 \ No newline at end of file diff --git a/task.txt b/task.txt index 686e8c9..b04e554 100644 --- a/task.txt +++ b/task.txt @@ -21,10 +21,10 @@ если звездочка то все. если не звезочка то перечислкенные через запятую имена папок. -10. Исправление конфига дб конф ++10. Исправление конфига дб конф ++ конфиг ставим пароль бд на удаленной. потм прописываем его в дб.конф -в конфиг ставим пароль бд на удаленной. потм прописываем его в дб.конф 11. Докачка нужных файлов. - скрипт2 -старт сервиса \ No newline at end of file ++старт сервиса \ No newline at end of file