Merge pull request #40 from vmstan:development

1.8.2
This commit is contained in:
Michael Stanclift 2020-06-11 21:37:03 -05:00 committed by GitHub
commit cde66f8f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View File

@ -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.1.zip
unzip v1.8.1.zip -d gravity-sync
wget https://github.com/vmstan/gravity-sync/archive/v1.8.2.zip
unzip v1.8.2.zip -d gravity-sync
cd gravity-sync
```

View File

@ -12,8 +12,11 @@ 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.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)
#### 1.8.1
- Detects if script is running as the root user or via `sudo ./gravity-sync.sh` and exits on error.
- Detects if script is running as the root user or via `sudo ./gravity-sync.sh` and exits on error. [#34](https://github.com/vmstan/gravity-sync/issues/34)
## 1.7
### The Andrew Release

View File

@ -1 +1 @@
1.8.1
1.8.2

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync'
VERSION='1.8.1'
VERSION='1.8.2'
# 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
@ -846,7 +846,8 @@ function detect_ssh {
## Error Validation
function error_validate {
if [ "$?" != "0" ]; then
if [ "$?" != "0" ]
then
echo_fail
exit 1
else
@ -914,6 +915,7 @@ function md5_compare {
then
REMOTE_CUSTOM_DNS="1"
MESSAGE="${REMOTE_HOST} has ${CUSTOM_DNS}"
HASHMARK=$((HASHMARK+1))
echo_info
fi
MESSAGE="No ${CUSTOM_DNS} Detected on $HOSTNAME"