From 8c01d4b127146fc320fa194997a2222de5082822 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 13:19:02 +0300 Subject: [PATCH] create db if need --- migration.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migration.sh b/migration.sh index bb58fcf..3e97d07 100644 --- a/migration.sh +++ b/migration.sh @@ -80,22 +80,22 @@ evt_specific_dirs_rsync(){ } fonts_rsync(){ - echo "send fonts to the destination" + echo "Send fonts to the destination" sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "mkdir -p $DESTINATION_PLATFORM_PATH/bin/storage/1/fonts/" sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT" -avz --ignore-existing $SOURCE_PLATFORM_PATH/bin/storage/1/fonts/ $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/bin/storage/1/fonts/ } fonts_rsync if [[ "$EVT_COMMON" == 0 ]]; then - echo "Качаю файлы из evt/common" + echo "Download only files from evt/common" evt_common_files_rsync elif [[ "$EVT_COMMON" == 1 ]]; then - echo "Качаю evt целиком" + echo "Download full evt" evt_full_rsync elif [[ "$EVT_COMMON" == 2 ]]; then - echo "Не скачиваю ничего из storage" + echo "Nothing to download from storage" elif [[ "$EVT_COMMON" == 3 ]]; then - echo "Download specidied folders" + echo "Download specified folders" evt_specific_dirs_rsync else echo "EVENT_COMMON value must be 0 or 1 or 2" && exit fi