Commit Graph

65 Commits

Author SHA1 Message Date
Heavybullets8
d3fe6a6954 fix self update 2022-07-20 06:35:32 -06:00
Heavybullets8
9241f27c2d quoting 2022-07-20 06:29:29 -06:00
Heavybullets8
31c1c7cd9b quoting var 2022-07-20 06:20:40 -06:00
Heavybullets8
2b8a4f1593 remove whitespace 2022-07-20 06:18:58 -06:00
Heavybullets8
e696674486 self update + regex fixes 2022-07-20 06:16:33 -06:00
Heavybullets8
61b8ab3444
Typo in --help 2022-06-22 22:33:34 -06:00
Heavybullets8
ca455cd9a5
cleanup
add git reset in the event a user chmod +x the script.
remove continue from if statement.. it didn't do anything
2022-06-14 23:28:13 +00:00
Heavybullets8
4d34c42f38
remove whitespace 2022-06-13 22:23:34 +00:00
Heavybullets8
893004fe58 add self update option 2022-06-13 16:20:35 -06:00
Heavybullets8
e325ab0a3a
fix DNS regex
Exclude dependency pods unless they were launched with custom-app.
2022-06-13 04:48:10 +00:00
Heavybullets8
8e8f46f4a3
typo in --help 2022-06-12 19:35:10 +00:00
Heavybullets8
9f741e4742 more indentation 2022-06-11 02:02:07 -06:00
Heavybullets8
c89b217943 remove un-needed indentation 2022-06-11 01:39:44 -06:00
Heavybullets8
45127be73a code cleanup 2022-06-11 00:13:09 -06:00
Heavybullets8
9e429e2a5b remove arg check & readme 2022-06-10 22:41:55 -06:00
Heavybullets8
6469dab7c4 fix help & add read prompt timer 2022-06-10 22:38:50 -06:00
Heavybullets8
3c42621a95 delete backup readme 2022-06-10 20:04:52 -06:00
Heavybullets8
23858a2a81 delete restore point option 2022-06-10 19:48:34 -06:00
Heavybullets8
ab0fdc24ac readme + help cleanup 2022-06-10 15:37:20 -06:00
Heavybullets8
8a2ec69b75 update readme + script 2022-06-10 14:32:39 -06:00
Heavybullets8
6d1a9fc77b longopts + dns + refactor 2022-06-10 13:40:35 -06:00
Heavybullets8
5d872c952f commit to beta 2022-06-10 13:36:13 -06:00
Heavybullets8
3317a1fb33 fix mounting regex 2022-06-09 13:56:28 -06:00
Heavybullets8
addef531db
cleanup
remove "continue" in unmount feature. Was no longer needed after previous commit.
2022-06-07 00:17:58 +00:00
Heavybullets8
dbfe7f2bb8 regex improvements 2022-06-06 18:10:39 -06:00
Heavybullets8
334a22ea1d
Remove redundant lines in -h 2022-05-18 03:43:24 +00:00
Heavybullets8
e34c913651
Merge pull request #5 from Heavybullets8/testing
various fixes/optimizations
2022-05-18 03:36:12 +00:00
Heavybullets8
920ec3c631 various fixes/optimizations 2022-05-17 21:31:55 -06:00
Heavybullets8
b03925de10
Merge pull request #4 from Heavybullets8/testing
Tested Changes
2022-05-16 23:52:48 +00:00
Heavybullets8
b4a53bcddb misc changes 2022-05-16 17:49:48 -06:00
Heavybullets8
dc10af1798 minor bugfixes 2022-05-14 12:25:00 -06:00
Heavybullets8
71a2a49cc0
remove ascii from updates. Looked awful in email :( 2022-05-14 00:09:35 +00:00
Heavybullets8
0176e2c319 fix various issues 2022-05-13 17:40:15 -06:00
Heavybullets8
22c454c326
close update functino if no updates 2022-05-13 16:46:15 +00:00
Heavybullets8
fb7b631693 remove need to rev sort 2022-05-12 08:54:48 -06:00
Heavybullets8
62f1e0a9c2 fix out of order deletion 2022-05-12 08:41:18 -06:00
Heavybullets8
683e8b4d62
Safety Checks
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..
2022-05-12 04:28:27 +00:00
Heavybullets8
1edff4f384
Re-arrange function calls 2022-05-12 01:28:36 +00:00
Heavybullets8
9c6312c3e9 restore + mount cleanup 2022-05-10 20:53:01 -06:00
Heavybullets8
e6250239c4 start # line from 1 in Restore Function 2022-05-10 20:10:26 -06:00
Heavybullets8
9111b7b490 remove warning for ext services chart 2022-05-10 19:35:46 -06:00
Heavybullets8
aca0c15ecd Kill script if invalid selection 2022-05-10 17:56:23 -06:00
Heavybullets8
39e66836a2 after_update_actions optimizations 2022-05-10 17:37:20 -06:00
Heavybullets8
e91fd6d2d2 thwart wrong reporting 2022-05-10 16:42:05 -06:00
Heavybullets8
1bb08e7d86 better ignore list search 2022-05-10 14:46:47 -06:00
Heavybullets8
a8b9deac6a cleaner timemout message 2022-05-10 12:48:35 -06:00
Heavybullets8
b4e5b45045
Backport Truescript Changes
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
2022-05-10 03:54:31 +00:00
Heavybullets8
48023d7f81
proper Restore indentation 2022-05-05 12:29:01 +00:00
Heavybullets8
b010387338 Merge branch 'main' of https://github.com/Heavybullets8/heavy_script 2022-05-04 22:08:51 -06:00
Heavybullets8
b8765964d2 Mounting feature improvement 2022-05-04 22:07:55 -06:00