This commit is contained in:
Michael Stanclift 2020-06-22 09:42:04 -05:00
parent e233a42daa
commit 52e547fa4f
4 changed files with 36 additions and 33 deletions

View File

@ -14,8 +14,8 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync
```bash ```bash
cd ~ cd ~
wget https://github.com/vmstan/gravity-sync/archive/v1.8.2.zip wget https://github.com/vmstan/gravity-sync/archive/v1.8.3.zip
unzip v1.8.2.zip -d gravity-sync unzip v1.8.3.zip -d gravity-sync
cd gravity-sync cd gravity-sync
``` ```

View File

@ -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. - Adds custom port specification to ssh-copy-id and dropbearkey commands during configuration generation.
- Generally better error handling of configuration options. - Generally better error handling of configuration options.
#### 1.8.3
- Simplified method for input of automation frequency via crontab.
#### 1.8.2 #### 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) - 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)

View File

@ -1 +1 @@
1.8.2 1.8.3

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN ##################### # GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync' 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') # 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 # For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
@ -1171,42 +1171,42 @@ function task_automate {
exit_nochange exit_nochange
fi fi
MESSAGE="Set Automation Frequency Per Hour" # MESSAGE="Set Automation Frequency Per Hour"
echo_info # echo_info
MESSAGE="1 = Every 60 Minutes" # MESSAGE="1 = Every 60 Minutes"
echo -e "++++++ ${MESSAGE}" # echo -e "++++++ ${MESSAGE}"
MESSAGE="2 = Every 30 Minutes" # MESSAGE="2 = Every 30 Minutes"
echo -e "++++++ ${MESSAGE}" # echo -e "++++++ ${MESSAGE}"
MESSAGE="4 = Every 15 Minutes" # MESSAGE="4 = Every 15 Minutes"
echo -e "++++++ ${MESSAGE}" # echo -e "++++++ ${MESSAGE}"
MESSAGE="6 = Every 10 Minutes" # MESSAGE="6 = Every 10 Minutes"
echo -e "++++++ ${MESSAGE}" # echo -e "++++++ ${MESSAGE}"
MESSAGE="12 = Every 05 Minutes" # MESSAGE="12 = Every 05 Minutes"
echo -e "++++++ ${MESSAGE}" # echo -e "++++++ ${MESSAGE}"
MESSAGE="Input Automation Frequency" MESSAGE="Sync Frequency in Minutes (60 max)"
echo_need echo_need
read INPUT_AUTO_FREQ 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 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" MESSAGE="Invalid Input"
echo -e "${FAIL} ${MESSAGE}" echo_fail
exit_nochange exit_nochange
fi fi