1. Ensure number of backups is AT LEAST 1. Im assuming a value of 0 would be user error.. so we want to ensure we have at least one backup
2. Make restore function use the same sorting method. Which ignores all words, only uses the values.
3. Changed mountpoint from `/temporary` to `/heavyscript`
Hopefully to avoid any issues of users using /temporary for ANY other reason..
4. Add a safety check within the unmount feature..
Before, there was a possibility users could have two applications, on separate pools, the script would try to mount to both of them. Obviously this is an issue.
So we added a newline count, if the find command finds more than one entry for an application, use the slower, but more reliable method of checking the users current application pool, attempt to mount the application instance that exists on that pool.
5. If user tries using '-r' and '-m' at the same time, report an error and exit. Those two functions cannot be used at the same time..
1. Arguments can be used in any order now (Thanks Ornias)
2. Rollback applications feature (Ornias' Idea, again thank you)
- When using -R
The script will monitor the status of the application after updating it, make sure it deploys, if the app does not deploy within the timeout, roll the application back
3. Ability to stop applications prior to updating with -S (another idea by ornias)
4. Option for verbose output with -v
I made this change after adding the new features, it makes the output ugly, but figured id give the users the choice to see more information.
5. Better variable names
6. A ton of other various little fixes and testing
You can view the current work, and who exactly did what, and when with this link:
https://github.com/truecharts/truescript/commits/optimise
My current un-pulled Pull Request:
https://github.com/truecharts/truescript/pull/5