Asif Bacchus
|
3f0b8a0d30
|
Reactivated ncRoot parameter checking
|
2018-10-03 13:37:15 -06:00 |
|
Asif Bacchus
|
b7a04a9422
|
quoted webuser variable in ncMain fcn to prevent globbing
|
2018-10-03 12:59:06 -06:00 |
|
Asif Bacchus
|
ed77963bd0
|
Fixed -5 parameter section to re-derrive err503File from supplied path.
|
2018-10-02 00:22:48 -06:00 |
|
Asif Bacchus
|
ff834d98a4
|
Debugged 503 section and fixed typos in warnings.
|
2018-10-02 00:18:00 -06:00 |
|
Asif Bacchus
|
325805ef37
|
Added check variable to determine if 503 cleanup required
|
2018-10-02 00:07:32 -06:00 |
|
Asif Bacchus
|
b3d1b3ea65
|
Updated 503 copy section to use err503Path
|
2018-10-01 23:59:26 -06:00 |
|
Asif Bacchus
|
d0d3cf8da1
|
Changed parameter -5 to path, derrive err503File
|
2018-10-01 23:57:57 -06:00 |
|
Asif Bacchus
|
bb0c5b2f66
|
Updated cleanup function to conform with check for webroot vs err503File
|
2018-10-01 23:33:57 -06:00 |
|
Asif Bacchus
|
1172defe7e
|
Changed parameter check to allow for none provided or starting with '-'
|
2018-10-01 23:26:04 -06:00 |
|
Asif Bacchus
|
fee66eb2cd
|
Set default err503File variable to 503.html in scriptPath
|
2018-10-01 23:23:06 -06:00 |
|
Asif Bacchus
|
bea22ce4c9
|
Changed 503 warning codes
|
2018-10-01 23:19:11 -06:00 |
|
Asif Bacchus
|
fc0a7c056c
|
Rewrote 503 copy to webroot and verify section.
|
2018-10-01 23:10:20 -06:00 |
|
Asif Bacchus
|
0e2fa901f1
|
New branch: 503 section now based on webroot not err503File existance.
Finished check for webroot.
|
2018-10-01 23:02:52 -06:00 |
|
Asif Bacchus
|
d8ed05ae08
|
Strip any trailing slashes from webroot input
|
2018-09-30 22:22:48 -06:00 |
|
Asif Bacchus
|
0802b00a59
|
Tested 503 section. Cleaned up info and error messages.
|
2018-09-30 22:19:09 -06:00 |
|
Asif Bacchus
|
2e1a3d7bde
|
Updated formatting and changed op colour
|
2018-09-30 21:54:27 -06:00 |
|
Asif Bacchus
|
caf2f6feb0
|
Formatting: Start tag
|
2018-09-30 21:49:15 -06:00 |
|
Asif Bacchus
|
b0218ea8a4
|
Formatting: updated warn503
|
2018-09-30 21:48:15 -06:00 |
|
Asif Bacchus
|
a6fcaf6012
|
Changed parameter titles
|
2018-09-30 21:38:54 -06:00 |
|
Asif Bacchus
|
2281510135
|
Removed ambiguity between webroot and ncRoot
|
2018-09-30 21:38:04 -06:00 |
|
Asif Bacchus
|
5064736e90
|
Added ncRoot references
|
2018-09-30 21:35:43 -06:00 |
|
Asif Bacchus
|
ec70de618c
|
Updated formatting tags to descriptive names
|
2018-09-30 21:32:26 -06:00 |
|
Asif Bacchus
|
91b53f1c35
|
Add prerequisite parameter check section
|
2018-09-30 20:24:24 -06:00 |
|
Asif Bacchus
|
1a59c9e7d8
|
Changed warn503 formatting
|
2018-09-30 20:15:12 -06:00 |
|
Asif Bacchus
|
04feb2644f
|
Added parameter check so lack of '-' triggers help screen also
|
2018-09-30 20:13:11 -06:00 |
|
Asif Bacchus
|
43f97e6fa0
|
Removed default 503 setting
|
2018-09-30 20:08:45 -06:00 |
|
Asif Bacchus
|
bd22db85df
|
Set default params and cleaned up comments for the same
|
2018-09-30 20:06:25 -06:00 |
|
Asif Bacchus
|
3733942596
|
Reactivated call to help screen on missing parameters
|
2018-09-30 20:02:22 -06:00 |
|
Asif Bacchus
|
370d9d34a7
|
Added cleanup skip 503 if null
|
2018-09-30 20:00:39 -06:00 |
|
Asif Bacchus
|
1d8909dbe0
|
Formatting: start of script coloured magenta in log
|
2018-09-30 19:52:16 -06:00 |
|
Asif Bacchus
|
5c0695a3e6
|
If no root permissions, exit and display error on console, no logging.
|
2018-09-30 19:49:56 -06:00 |
|
Asif Bacchus
|
f1b4f69029
|
Removed all intra-script warning logging. Let 'quit' handle it.
|
2018-09-30 19:40:17 -06:00 |
|
Asif Bacchus
|
ddf9544239
|
Quit: Changed warnings and errors to single-line for cleaner filtering.
|
2018-09-30 19:37:26 -06:00 |
|
Asif Bacchus
|
6ec2444891
|
Formatting: replaced cyan with lightcyan
|
2018-09-30 19:30:22 -06:00 |
|
Asif Bacchus
|
008a941674
|
Formatting: replaced bold yellow with lightyellow
|
2018-09-30 19:29:02 -06:00 |
|
Asif Bacchus
|
59ef92155f
|
Tested and debugged cleanup
|
2018-09-20 00:46:10 -06:00 |
|
Asif Bacchus
|
44a67156a3
|
Changed 503 file name variable
|
2018-09-20 00:22:40 -06:00 |
|
Asif Bacchus
|
169219bd91
|
Added cleanup function
|
2018-09-20 00:19:59 -06:00 |
|
Asif Bacchus
|
a4894e39f2
|
Added ncMaint function
|
2018-09-20 00:04:10 -06:00 |
|
Asif Bacchus
|
a7e410970d
|
Added NC maint error code 100
|
2018-09-19 23:53:10 -06:00 |
|
Asif Bacchus
|
1e57ea1d15
|
Added NC maint section
|
2018-09-19 23:50:33 -06:00 |
|
Asif Bacchus
|
9dbc610c24
|
Tested and debugged 503 section
|
2018-09-19 23:43:12 -06:00 |
|
Asif Bacchus
|
99f69d5b9b
|
Updated checkExist function to remove extraneous notifications
|
2018-09-19 23:35:27 -06:00 |
|
Asif Bacchus
|
bc90ed3cd3
|
Updated warn503 formatting
|
2018-09-19 23:32:54 -06:00 |
|
Asif Bacchus
|
83a342fc58
|
Updated formatting for yellow and light yellow
|
2018-09-19 23:31:41 -06:00 |
|
Asif Bacchus
|
4260f62f9e
|
Fixed listing of warning codes in quit function
|
2018-09-19 23:28:21 -06:00 |
|
Asif Bacchus
|
26b687f92b
|
Added call to quit function at end of script
|
2018-09-19 23:23:44 -06:00 |
|
Asif Bacchus
|
ebb56aa098
|
Added warning report section to quit function
|
2018-09-19 23:22:57 -06:00 |
|
Asif Bacchus
|
83442bc6fb
|
Removed normal and verbose logging.
Replaced verbose warnings in 503 section with codes.
|
2018-09-19 23:09:00 -06:00 |
|
Asif Bacchus
|
5ff7a43870
|
Removed manadatory parameter check -- no mandatory parameters (yet?)
|
2018-09-19 22:58:44 -06:00 |
|
Asif Bacchus
|
0349e1e0c9
|
Added expanded 503 error warning to normal and verbose logs
|
2018-09-19 22:54:53 -06:00 |
|
Asif Bacchus
|
b0cfd1c1e7
|
Updated variable name from 503Location to location503
|
2018-09-19 22:48:00 -06:00 |
|
Asif Bacchus
|
afe0440020
|
Cleaned up 503 section by using warningExplain array
|
2018-09-19 22:43:27 -06:00 |
|
Asif Bacchus
|
aad6b7876f
|
Added warning explanation variables
|
2018-09-19 22:24:24 -06:00 |
|
Asif Bacchus
|
9841631734
|
Added webroot parameter and variable
|
2018-09-19 22:14:19 -06:00 |
|
Asif Bacchus
|
45c5560bd9
|
Added 503 copy section
|
2018-09-19 22:13:19 -06:00 |
|
Asif Bacchus
|
90772f07a9
|
Added 503 error page check
|
2018-09-19 21:53:34 -06:00 |
|
Asif Bacchus
|
01b33933a8
|
Added warning counter variable for exit notification
|
2018-09-19 21:48:18 -06:00 |
|
Asif Bacchus
|
87ab180b06
|
Updated comment explaining scriptHelp exit code
|
2018-09-19 17:11:48 -06:00 |
|
Asif Bacchus
|
a00e6ee364
|
Updated formatting of checkExist output
|
2018-09-19 17:11:11 -06:00 |
|
Asif Bacchus
|
98e901eb11
|
Generate sqlDumpFile name
|
2018-09-19 17:08:52 -06:00 |
|
Asif Bacchus
|
0316a01975
|
changed unused logFile vars to /dev/null to avoid 'ambiguous redirect'
|
2018-09-19 17:02:10 -06:00 |
|
Asif Bacchus
|
92672acc7d
|
Create temp dir for SQLdump
|
2018-09-19 17:01:02 -06:00 |
|
Asif Bacchus
|
de327e663b
|
Check for mandatory sqlDumpDir parameter
|
2018-09-19 16:50:32 -06:00 |
|
Asif Bacchus
|
5d33f5877e
|
Created checkExist function for files and directories
|
2018-09-19 16:45:37 -06:00 |
|
Asif Bacchus
|
8d50f424c6
|
export logFile variable
|
2018-09-19 16:31:52 -06:00 |
|
Asif Bacchus
|
fd3c7df9a9
|
Setup logging verbosity
|
2018-09-19 16:30:18 -06:00 |
|
Asif Bacchus
|
82496e238a
|
Changed root check failure to logged exit with code 2
|
2018-09-19 16:09:27 -06:00 |
|
Asif Bacchus
|
af70cb2e2f
|
Added root check and updated exit codes
|
2018-09-19 16:04:59 -06:00 |
|
Asif Bacchus
|
8914c7e64a
|
Log script operations start
|
2018-09-19 16:00:38 -06:00 |
|
Asif Bacchus
|
74a514feb8
|
Removed scriptHelp error code exit and removed error code 1
|
2018-09-19 15:57:06 -06:00 |
|
Asif Bacchus
|
3581fd3bb5
|
Added error code 1
|
2018-09-19 15:51:38 -06:00 |
|
Asif Bacchus
|
dee81f261e
|
Redirect quit messages to logFile
|
2018-09-19 15:50:50 -06:00 |
|
Asif Bacchus
|
51b550195c
|
scriptHelp exits by passing error code if provided
|
2018-09-19 15:49:45 -06:00 |
|
Asif Bacchus
|
dadb83cff8
|
Exit with error code on parameter errors
|
2018-09-19 15:48:53 -06:00 |
|
Asif Bacchus
|
458a7d16e4
|
Initialize parameters
|
2018-09-19 15:45:59 -06:00 |
|
Asif Bacchus
|
71f7644175
|
Show scriptHelp if no parameters given. Redirect unknown parameters.
|
2018-09-19 15:44:32 -06:00 |
|
Asif Bacchus
|
8be32fc01d
|
Trap for unrecognized parameters
|
2018-09-19 15:41:44 -06:00 |
|
Asif Bacchus
|
9d0989f9a9
|
scriptHelp exits with code 98 and NO logging
|
2018-09-19 15:38:19 -06:00 |
|
Asif Bacchus
|
4eee202c5e
|
Added quit function
|
2018-09-19 15:36:57 -06:00 |
|
Asif Bacchus
|
dc48cb1257
|
Added scriptHelp exit code 98
|
2018-09-19 15:31:57 -06:00 |
|
Asif Bacchus
|
7b13d984d8
|
Added preset formatting as variables
|
2018-09-19 15:31:07 -06:00 |
|
Asif Bacchus
|
0127494657
|
Initial setup of backup script
|
2018-09-19 15:12:56 -06:00 |
|