|
|
|
|
@ -80,22 +80,22 @@ evt_specific_dirs_rsync(){
@@ -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 |
|
|
|
|
|