Times are a changin

This commit is contained in:
Michael Stanclift 2020-05-29 20:11:04 -05:00
parent 46784159e3
commit f4886298f0

View File

@ -1,6 +1,8 @@
# The Changelog # The Changelog
## 1.7 ## 1.7
### The Andrew Release
**Features** **Features**
- Gravity Sync will now manage the `custom.list` file that contains the "Local DNS Records" function within the Pi-hole interface. - Gravity Sync will now manage the `custom.list` file that contains the "Local DNS Records" function within the Pi-hole interface.
@ -11,11 +13,13 @@
- No new Star Trek references. - No new Star Trek references.
### 1.7.1 #### 1.7.1
- There is a changelog file now. I'm mentioning it in the changelog file. So meta. - There is a changelog file now. I'm mentioning it in the changelog file. So meta.
- `./gravity-sync.sh version` will alert for new versions. - `./gravity-sync.sh version` will alert for new versions.
## 1.6 ## 1.6
### The Restorative Release
**Features** **Features**
- New `./gravity-sync restore` function will bring a previous version of the `gravity.db` back from the dead. - New `./gravity-sync restore` function will bring a previous version of the `gravity.db` back from the dead.
@ -27,6 +31,8 @@
- New functions add consistency in status output. - New functions add consistency in status output.
## 1.5 ## 1.5
### The Automated Release
**Features** **Features**
- You can now easily deploy the task automation via crontab by running `./gravity-sync.sh automate` which will simply ask how often you'd like to run the script per hour, and then create the entry for you. - You can now easily deploy the task automation via crontab by running `./gravity-sync.sh automate` which will simply ask how often you'd like to run the script per hour, and then create the entry for you.
@ -38,6 +44,8 @@
- Cleanup of various exit commands. - Cleanup of various exit commands.
## 1.4 ## 1.4
### The Configuration Release
**Features** **Features**
- Adds new `./gravity-sync config` feature to simplify deployment! - Adds new `./gravity-sync config` feature to simplify deployment!
- Adds variables for SSH settings. - Adds variables for SSH settings.
@ -45,7 +53,7 @@
- All new and exciting code comments. - All new and exciting code comments.
- No new Star Trek references. - No new Star Trek references.
### 1.4.1 #### 1.4.1
- Adds variables for custom log locations to `gravity-sync.conf`, see `.example` file for listing. - Adds variables for custom log locations to `gravity-sync.conf`, see `.example` file for listing.
### 1.4.2 ### 1.4.2
- Will prompt to create new `gravity-sync.conf` file when run without an existing configuration. - Will prompt to create new `gravity-sync.conf` file when run without an existing configuration.
@ -53,77 +61,82 @@
- Bug fixes around not properly utilizing custom SSH keyfile. - Bug fixes around not properly utilizing custom SSH keyfile.
## 1.3 ## 1.3
### The Comparison Release
1.3 should be called 2.0, but I'll resist that temptation -- so many new enhancements! 1.3 should be called 2.0, but I'll resist that temptation -- so many new enhancements!
**Features** **Features**
- GS will now compare remote and local databases and only replicate if it detects a difference. - Gravity Sync will now compare remote and local databases and only replicate if it detects a difference.
- Verifies most commands complete before continuing each step to fail more gracefully. - Verifies most commands complete before continuing each step to fail more gracefully.
- Additional debugging options such as checking last cronjob output, if configured. - Additional debugging options such as checking last cronjob output, if configured.
- Much more consistency in how running commands are processed in interactive mode. - Much more consistency in how running commands are processed in interactive mode.
- What was once a 10 line bash script is now a 500 line monster (good, bad?)
### 1.3.4 #### 1.3.1
- Moves backup of local database before initiating remote pull.
- Validates file ownership and permissions before attempting to rewrite.
- Added two Star Trek references.
### 1.3.1
- Changes [GOOD] to [DONE] in execution output. - Changes [GOOD] to [DONE] in execution output.
- Better validation of initial SSH connection. - Better validation of initial SSH connection.
- Support for password based authentication using SSHPASS. - Support for password based authentication using SSHPASS.
### 1.3.2 #### 1.3.2
- MUCH cleaner output, same great features. - MUCH cleaner output, same great features.
### 1.3.3 #### 1.3.3
- Corrected Pihole bin path issue that cause automated sync not to reload services. - Corrected Pihole bin path issue that cause automated sync not to reload services.
#### 1.3.4
- Moves backup of local database before initiating remote pull.
- Validates file ownership and permissions before attempting to rewrite.
- Added two Star Trek references.
## 1.2 ## 1.2
### The Functional Release
- Refactored process to use functions and cleanup process of execution. - Refactored process to use functions and cleanup process of execution.
- Does not look for permission to update when run. - Does not look for permission to update when run.
- Cleanup and expand comments. - Cleanup and expand comments.
### 1.2.1 #### 1.2.1
- Improved logging functions. - Improved logging functions.
### 1.2.2 #### 1.2.2
- Different style for status updates. - Different style for status updates.
### 1.2.3 #### 1.2.3
- Uses a dedicated backup folder for `.backup` and `.last` files. - Uses a dedicated backup folder for `.backup` and `.last` files.
- Copies db instead of moving to rename and then replacing to be more reliable. - Copies db instead of moving to rename and then replacing to be more reliable.
- Even cleaner label status. - Even cleaner label status.
### 1.2.4 #### 1.2.4
- Changes `~` to `$HOME`. - Changes `~` to `$HOME`.
- Fixes bug that prevented sync from working when run via crontab. - Fixes bug that prevented sync from working when run via crontab.
### 1.2.5 #### 1.2.5
- Push function now does a backup, on the secondary PH, of the primary database, before pushing. - Push function now does a backup, on the secondary PH, of the primary database, before pushing.
## 1.1 ## 1.1
### The Pushy Release
- Seperated main purpose of script into `pull` argument. - Seperated main purpose of script into `pull` argument.
- Allow process to reverse back using `push` argument. - Allow process to reverse back using `push` argument.
### 1.1.2 #### 1.1.2
- First release since move from being just a Gist. - First release since move from being just a Gist.
- Just relearning how to use GitHub, minor bug fixes. - Just relearning how to use GitHub, minor bug fixes.
### 1.1.3 #### 1.1.3
- Now includes example an configuration file. - Now includes example an configuration file.
### 1.1.4 #### 1.1.4
- Added update script. - Added update script.
- Added version check. - Added version check.
### 1.1.5 #### 1.1.5
- Added ability to view logs with `./gravity-sync.sh logs`. - Added ability to view logs with `./gravity-sync.sh logs`.
### 1.1.6 #### 1.1.6
- Code easier to read with proper tabs. - Code easier to read with proper tabs.
## 1.0 ## 1.0
Initial release: to Andrew, internal Slack and eventually [vmstan.com](https://vmstan.com/gravity-sync). ### The Initial Release**
No version control, variables or anything fancy. It only worked if everything was exactly perfect.
``` ```
echo 'Copying gravity.db from HA primary' echo 'Copying gravity.db from HA primary'