Commit Graph

41 Commits

Author SHA1 Message Date
Asif Bacchus
523c9984a6 Added INFO log tags to hostname lookup list 2018-09-25 18:36:40 -06:00
Asif Bacchus
a09dac147a Updated help text 2018-09-25 18:24:06 -06:00
Asif Bacchus
8a0362a6e1 Updated logging with colour variables and logging tags 2018-09-25 18:17:30 -06:00
Asif Bacchus
92519055fc Reformatted quit function log output 2018-09-25 18:01:29 -06:00
Asif Bacchus
3585490f80 Added formatting variables 2018-09-25 17:55:58 -06:00
Asif Bacchus
356dfc7f21 Removed [SUCCESS] tag from scipt completion notation 2018-09-25 17:49:12 -06:00
Asif Bacchus
1e8ff53075 Replaced repeated timestamp with single variable 2018-09-25 17:47:30 -06:00
Asif Bacchus
12c0cdde93 quoted logFile variable to prevent globbing 2018-09-25 17:24:14 -06:00
Asif Bacchus
841fbf2bc3 Updated logfile name generation to strip final extension from scriptName 2018-09-16 01:45:18 -06:00
Asif Bacchus
e2b7b5976d Bugfix: IP address now logged in all circumstances. 2018-09-14 00:21:42 -06:00
Asif Bacchus
90e50bf74b piped output from curl check to null 2018-09-14 00:06:02 -06:00
Asif Bacchus
24ade5322f Check if curl installed 2018-09-14 00:01:30 -06:00
Asif Bacchus
828dea9aee Updated colour output in logfile. 2018-09-13 23:52:32 -06:00
Asif Bacchus
8d7328c0d9 Removed verbose logging 2018-09-13 23:45:17 -06:00
Asif Bacchus
9e10e4ddd2 Updated output colours 2018-09-13 23:31:58 -06:00
Asif Bacchus
5a91819f3b Cleaned up updated section to compact code.
Report update necessity in all logs.
2018-09-13 23:27:18 -06:00
Asif Bacchus
b366996b85 Added timestamp to all logging entries 2018-09-13 21:58:56 -06:00
Asif Bacchus
9eeaa1af31 Updated help and default logfile name 2018-09-13 21:42:14 -06:00
Asif Bacchus
c7223c32b3 Add logFile output to all sections 2018-09-13 21:38:09 -06:00
Asif Bacchus
ea979c5c93 IP: removed redundant mode notification. Logged IP being used. 2018-09-13 21:26:24 -06:00
Asif Bacchus
d9d5f71b5a Log script start and mode 2018-09-13 21:25:12 -06:00
Asif Bacchus
26042b952e Removed 'quiet' logging.
It's the default and writes directly to the logFile
2018-09-13 21:22:02 -06:00
Asif Bacchus
e24f578b8f Added log verbosity options 2018-09-13 21:15:31 -06:00
Asif Bacchus
4d28f068f0 Reordered IP address section.
Always display  IP being used whether provided or detected.
2018-09-13 21:02:31 -06:00
Asif Bacchus
d9804ee8ec Removed redundant error messages on scriptHelp invocation. 2018-09-13 20:59:41 -06:00
Asif Bacchus
37d51c50e7 Added update failure notification 2018-09-13 20:54:08 -06:00
Asif Bacchus
532f2abd1e Check and update IP if necessary. 2018-09-12 16:53:36 -06:00
Asif Bacchus
346ea58472 Get current IP and record ID at CloudFlare for specified DNS records 2018-09-12 08:45:33 -06:00
Asif Bacchus
b5de6d9676 Added CloudFlare record check for AAAA records.
Fixed array trimming after non-existant records found.
2018-09-12 06:20:06 -06:00
Asif Bacchus
136b8872b7 Split help and examples, added parameters for both.
Updated script to use new quit function.
Created array with error codes.
2018-09-12 06:07:55 -06:00
Asif Bacchus
41a66ad2e1 Removed echo testing section.
CloudFlare lookup section removes non-existant domains from arrays.
2018-09-12 05:18:54 -06:00
Asif Bacchus
aa10ba23e1 Changed echo section to display CloudFlare results based on array index. 2018-09-12 04:39:37 -06:00
Asif Bacchus
b435a3d6e3 Fixed array processing for record lookup.
Updated testing echo section.
2018-09-12 04:17:48 -06:00
Asif Bacchus
5ca04a5ecd Check CloudFlare to see if records exist. 2018-09-12 03:19:10 -06:00
Asif Bacchus
d403b124f1 Rewrote scriptHelp instructions 2018-09-12 03:00:43 -06:00
Asif Bacchus
0a22c80ab6 Added IP protocol type selection. EITHER IP4 OR IP6. 2018-09-12 02:11:47 -06:00
Asif Bacchus
7bfdaabbd0 Added IP parameter and detection if parameter not used 2018-09-12 01:15:39 -06:00
Asif Bacchus
4d7591f245 Extract cloudflare details from file 2018-09-12 00:48:58 -06:00
Asif Bacchus
eeda084d67 Added check for empty or non-existant account details file 2018-09-12 00:16:26 -06:00
Asif Bacchus
91d1f71624 Check parameters for empty or '-' contents 2018-09-12 00:08:06 -06:00
Asif Bacchus
b516d7889e Setup initial skeleton for script with parameters 2018-09-11 23:32:42 -06:00