From 52e547fa4f9efec5aed890e2ffe4f8e99a1b788a Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 22 Jun 2020 09:42:04 -0500 Subject: [PATCH] 1.8.3 --- ADVANCED.md | 4 ++-- CHANGELOG.md | 3 +++ VERSION | 2 +- gravity-sync.sh | 60 ++++++++++++++++++++++++------------------------- 4 files changed, 36 insertions(+), 33 deletions(-) diff --git a/ADVANCED.md b/ADVANCED.md index 4ac0662..62dd9cd 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -14,8 +14,8 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync ```bash cd ~ -wget https://github.com/vmstan/gravity-sync/archive/v1.8.2.zip -unzip v1.8.2.zip -d gravity-sync +wget https://github.com/vmstan/gravity-sync/archive/v1.8.3.zip +unzip v1.8.3.zip -d gravity-sync cd gravity-sync ``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f3b3b3..5525e8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ There is nothing really sexy here, but a lot of changes under the covers to impr - Adds custom port specification to ssh-copy-id and dropbearkey commands during configuration generation. - Generally better error handling of configuration options. +#### 1.8.3 +- Simplified method for input of automation frequency via crontab. + #### 1.8.2 - Corrects issue where `custom.list` file would not replicate if the file didn't exist locally, and there were no other changes to replicate. [#39](https://github.com/vmstan/gravity-sync/issues/39) diff --git a/VERSION b/VERSION index 0bfbd57..fe4e75f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.2 \ No newline at end of file +1.8.3 \ No newline at end of file diff --git a/gravity-sync.sh b/gravity-sync.sh index 20e5789..e05b9fc 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS # GRAVITY SYNC BY VMSTAN ##################### PROGRAM='Gravity Sync' -VERSION='1.8.2' +VERSION='1.8.3' # Execute from the home folder of the user who owns it (ex: 'cd ~/gravity-sync') # For documentation or downloading updates visit https://github.com/vmstan/gravity-sync @@ -1171,42 +1171,42 @@ function task_automate { exit_nochange fi - MESSAGE="Set Automation Frequency Per Hour" - echo_info + # MESSAGE="Set Automation Frequency Per Hour" + # echo_info - MESSAGE="1 = Every 60 Minutes" - echo -e "++++++ ${MESSAGE}" - MESSAGE="2 = Every 30 Minutes" - echo -e "++++++ ${MESSAGE}" - MESSAGE="4 = Every 15 Minutes" - echo -e "++++++ ${MESSAGE}" - MESSAGE="6 = Every 10 Minutes" - echo -e "++++++ ${MESSAGE}" - MESSAGE="12 = Every 05 Minutes" - echo -e "++++++ ${MESSAGE}" + # MESSAGE="1 = Every 60 Minutes" + # echo -e "++++++ ${MESSAGE}" + # MESSAGE="2 = Every 30 Minutes" + # echo -e "++++++ ${MESSAGE}" + # MESSAGE="4 = Every 15 Minutes" + # echo -e "++++++ ${MESSAGE}" + # MESSAGE="6 = Every 10 Minutes" + # echo -e "++++++ ${MESSAGE}" + # MESSAGE="12 = Every 05 Minutes" + # echo -e "++++++ ${MESSAGE}" - MESSAGE="Input Automation Frequency" + MESSAGE="Sync Frequency in Minutes (60 max)" echo_need read INPUT_AUTO_FREQ - if [ $INPUT_AUTO_FREQ == 1 ] + if [ $INPUT_AUTO_FREQ > 60 ] + # then + # AUTO_FREQ='60' + # elif [ $INPUT_AUTO_FREQ == 2 ] + # then + # AUTO_FREQ='30' + # elif [ $INPUT_AUTO_FREQ == 4 ] + # then + # AUTO_FREQ='15' + # elif [ $INPUT_AUTO_FREQ == 6 ] + # then + # AUTO_FREQ='10' + # elif [ $INPUT_AUTO_FREQ == 12 ] + # then + # AUTO_FREQ='5' then - AUTO_FREQ='60' - elif [ $INPUT_AUTO_FREQ == 2 ] - then - AUTO_FREQ='30' - elif [ $INPUT_AUTO_FREQ == 4 ] - then - AUTO_FREQ='15' - elif [ $INPUT_AUTO_FREQ == 6 ] - then - AUTO_FREQ='10' - elif [ $INPUT_AUTO_FREQ == 12 ] - then - AUTO_FREQ='5' - else MESSAGE="Invalid Input" - echo -e "${FAIL} ${MESSAGE}" + echo_fail exit_nochange fi