Commit Graph

522 Commits

Author SHA1 Message Date
Michael Stanclift
d434485b2c Add dev version output 2020-06-22 09:45:35 -05:00
Michael Stanclift
52e547fa4f 1.8.3 2020-06-22 09:42:04 -05:00
Michael Stanclift
e233a42daa 1.8.2 2020-06-11 21:35:20 -05:00
Michael Stanclift
e725363595 Fix for no custom.list locally not replicating 2020-06-11 21:24:12 -05:00
Michael Stanclift
f908739ae1 Remove esc check 2020-06-11 21:08:13 -05:00
Michael Stanclift
1f3aac8142 Hide output 2020-06-03 18:14:16 -05:00
Michael Stanclift
db546425ff Check for sudo ability 2020-06-03 18:12:07 -05:00
Michael Stanclift
64afbd4e8d 1.8.1 2020-06-03 15:52:36 -05:00
Michael Stanclift
c8207a48e1 Root function 2020-06-03 15:47:20 -05:00
Michael Stanclift
71827c613a Must not run as root 2020-06-03 15:45:41 -05:00
Michael Stanclift
0ff690a2f0 check for root 2020-06-03 15:43:36 -05:00
Michael Stanclift
99e04ffa08 1.8.0(1) 2020-06-03 15:15:45 -05:00
Michael Stanclift
3810b67808 Back to awk 2020-06-03 15:12:39 -05:00
Michael Stanclift
44f9f70cef Some day I'll understand how quotes work in bash 2020-06-03 15:09:26 -05:00
Michael Stanclift
8c4b3a1268 sed instead of awk 2020-06-03 15:06:03 -05:00
Michael Stanclift
2616ab5987 Remove unconditional connection 2020-06-03 14:53:09 -05:00
Michael Stanclift
136a818d69 Regression 2020-06-03 14:47:40 -05:00
Michael Stanclift
13d91792e0 Silence dbclient 2020-06-03 14:44:49 -05:00
Michael Stanclift
2fcaeb4428 Clean up key registration output 2020-06-03 14:38:50 -05:00
Michael Stanclift
1ab2a4ffe9 Rewrite SSH key generation 2020-06-03 14:30:33 -05:00
Michael Stanclift
bdb770ef60 TRY THIS 2020-06-03 14:07:36 -05:00
Michael Stanclift
aac13988d7 I will make this work 2020-06-03 14:06:53 -05:00
Michael Stanclift
3073063f93 Maybe not? 2020-06-03 14:04:52 -05:00
Michael Stanclift
23f390f4ab Fewer 2020-06-03 13:58:58 -05:00
Michael Stanclift
be2881d629 Dropbear key creation update 2020-06-03 13:58:05 -05:00
Michael Stanclift
e359ef7365 Rework Ssh-keygen option order 2020-06-03 13:31:29 -05:00
Michael Stanclift
8601137799 Silence SSH keygen 2020-06-03 13:26:00 -05:00
Michael Stanclift
ff97527661 Remove old code comments 2020-06-03 13:07:15 -05:00
Michael Stanclift
f75a045f87 Replace SSH commands 2020-06-03 09:45:06 -05:00
Michael Stanclift
8cfdd15392 Rewrite SSH function 2020-06-03 09:20:35 -05:00
Michael Stanclift
89740497e9 error validate 2020-06-03 00:11:02 -05:00
Michael Stanclift
529789a4c1 Fuck quotes 2020-06-03 00:09:34 -05:00
Michael Stanclift
af11f11a6b Duh 2020-06-03 00:07:54 -05:00
Michael Stanclift
54efb9858a PLEASE 2020-06-02 23:49:43 -05:00
Michael Stanclift
5b6e4a5990 Test 2020-06-02 23:42:08 -05:00
Michael Stanclift
abb50c135a BLAH 2020-06-02 23:33:16 -05:00
Michael Stanclift
a13d8ba887 I HATE THIS 2020-06-02 23:32:32 -05:00
Michael Stanclift
60d676b8ff Test 2020-06-02 23:31:20 -05:00
Michael Stanclift
ba6980c558 Test 2020-06-02 23:29:33 -05:00
Michael Stanclift
2e6fc960d7 Comment output 2020-06-02 23:28:14 -05:00
Michael Stanclift
33078e2018 Remove a slash 2020-06-02 23:27:11 -05:00
Michael Stanclift
2662a7e852 Double quote? 2020-06-02 23:18:37 -05:00
Michael Stanclift
411a401b07 Quites? 2020-06-02 23:12:29 -05:00
Michael Stanclift
beb9e8513f Rsync rewrite test 2020-06-02 23:09:46 -05:00
Michael Stanclift
e3f6925bbf remove quotes 2020-06-02 21:19:36 -05:00
Michael Stanclift
480cf29b07 Comment out 2020-06-02 21:18:53 -05:00
Michael Stanclift
ec5171f352 Grrr 2020-06-02 21:15:35 -05:00
Michael Stanclift
71133d4acd More quotes 2020-06-02 21:09:26 -05:00
Michael Stanclift
dc20d24d65 QUotes? 2020-06-02 21:08:05 -05:00
Michael Stanclift
9d64fa9a65 Test 2020-06-02 21:04:02 -05:00
Michael Stanclift
ab9fced32d Simpler than I thought? 2020-06-02 21:00:31 -05:00
Michael Stanclift
84a7189858 Put the echo back 2020-06-02 20:58:47 -05:00
Michael Stanclift
6b6ab7619c Remove testing echo 2020-06-02 20:56:59 -05:00
Michael Stanclift
4c8b76c15f Preserve status on timeout 2020-06-02 20:55:17 -05:00
Michael Stanclift
e48353724f Change function call position 2020-06-02 20:51:16 -05:00
Michael Stanclift
e436c8bd5e Test output of command 2020-06-02 20:47:36 -05:00
Michael Stanclift
fdeb2be94f Comment the entire block 2020-06-02 20:46:34 -05:00
Michael Stanclift
fc030ba9bf Devnull 2020-06-02 20:45:25 -05:00
Michael Stanclift
92269fe4c3 Test new SSH function 2020-06-02 20:44:46 -05:00
Michael Stanclift
b4cc029d7e Break up SSHPASS 2020-06-02 17:27:49 -05:00
Michael Stanclift
b86106d7e3 Better colors 2020-06-02 15:48:26 -05:00
Michael Stanclift
4f5c38c389 Fix bug where password not used 2020-06-02 15:45:44 -05:00
Michael Stanclift
0bbadbf166 Change reference 2020-06-02 15:26:25 -05:00
Michael Stanclift
d48cc54b77 Stray else 2020-06-02 14:58:12 -05:00
Michael Stanclift
920099044f And then 2020-06-02 14:55:05 -05:00
Michael Stanclift
98daf0a893 Better process handling 2020-06-02 14:54:09 -05:00
Michael Stanclift
2f21bddd94 Cleanup SSHPASS prompts 2020-06-02 14:51:11 -05:00
Michael Stanclift
cf7bc4a798 Validate log export 2020-06-02 11:55:35 -05:00
Michael Stanclift
e45fde8e8a Less chatty about file validation 2020-06-02 11:52:07 -05:00
Michael Stanclift
37705f066f Even better way to show dev 2020-06-02 11:33:00 -05:00
Michael Stanclift
a5497b5cd9 Better way to show dev branch 2020-06-02 11:32:38 -05:00
Michael Stanclift
6e86e4dc4d Show dev branch on update 2020-06-02 11:31:07 -05:00
Michael Stanclift
4f7987a372 Cleanup analyzing output 2020-06-02 11:27:46 -05:00
Michael Stanclift
1a00f1e57c Less chatty about replication validation 2020-06-02 11:23:21 -05:00
Michael Stanclift
c0c4009825 Better way to check validation 2020-06-02 11:07:51 -05:00
Michael Stanclift
abc3273f55 Less chatty during validation 2020-06-02 11:03:57 -05:00
Michael Stanclift
eb864a614b Adds invalid task 2020-06-02 10:46:02 -05:00
Michael Stanclift
be5afa2d7b Move script_start to very first line 2020-06-02 10:44:16 -05:00
Michael Stanclift
5ba9da0f3b Move more tasks to the stack 2020-06-02 10:42:19 -05:00
Michael Stanclift
2d07e6dbd9 Add alias for more functions 2020-06-02 10:36:59 -05:00
Michael Stanclift
cbbf18bb60 Change tasktype output 2020-06-02 10:18:51 -05:00
Michael Stanclift
7af4055d1f Silence ping output 2020-06-02 10:05:43 -05:00
Michael Stanclift
8e8e3dd062 Use standard error_val 2020-06-02 10:02:03 -05:00
Michael Stanclift
0bf6831bb5 Output if bypassed 2020-06-02 09:47:48 -05:00
Michael Stanclift
47d71fd821 Ping Test on configure input 2020-06-02 09:43:58 -05:00
Michael Stanclift
87fdf10d38 Merge branch 'development' of https://github.com/vmstan/gravity-sync into development 2020-06-01 21:04:14 -05:00
Michael Stanclift
b8288d3393 Clean up 2020-06-01 21:04:09 -05:00
Michael Stanclift
176604a4f8
Merge pull request #31 from vmstan:development
1.7.6
2020-06-01 15:53:28 -05:00
Michael Stanclift
ef82f47773 1.7.6(1) 2020-06-01 15:52:35 -05:00
Michael Stanclift
0c604685c7 Fix backup custom.list if not already created 2020-06-01 15:45:44 -05:00
Michael Stanclift
b7e31b61c3 Fix to pull custom.list 2020-06-01 15:38:07 -05:00
Michael Stanclift
19d4c9c744 WARN headers are purple 2020-06-01 15:27:36 -05:00
Michael Stanclift
8836be495d sed 's/\s.*$//' 2020-06-01 15:17:01 -05:00
Michael Stanclift
7a1d5c46d4 >/dev/null 2>&1 inside 2020-06-01 14:24:12 -05:00
Michael Stanclift
5f3df0b663 >/dev/null 2>&1 2020-06-01 14:23:31 -05:00
Michael Stanclift
62794740c3 apt-get 2020-06-01 14:20:50 -05:00
Michael Stanclift
2a578a62bd Less iffy 2020-06-01 13:54:14 -05:00
Michael Stanclift
3fe515a4e4 Fing " 2020-06-01 13:53:12 -05:00
Michael Stanclift
4e4ddd56d1 Maybe " 2020-06-01 13:50:58 -05:00
Michael Stanclift
f1cac14713 Extra then 2020-06-01 13:47:36 -05:00
Michael Stanclift
eac8a746e2 fi 2020-06-01 13:46:39 -05:00
Michael Stanclift
24c2425b7f then 2020-06-01 13:45:37 -05:00
Michael Stanclift
9c35387106 Cleanup Dropbear Notice 2020-06-01 13:45:16 -05:00
Michael Stanclift
8a62f79059 I hate bash 2020-06-01 13:36:47 -05:00
Michael Stanclift
7a01524cb1 Less ; 2020-06-01 13:33:43 -05:00
Michael Stanclift
1f1aead6d4 fi; 2020-06-01 13:30:43 -05:00
Michael Stanclift
5cc7c305d9 extra echo for dbclient 2020-06-01 13:29:50 -05:00
Michael Stanclift
df82e8d6d0 Check for dbclient on validation 2020-06-01 13:08:18 -05:00
Michael Stanclift
da66934939 Output to .pub 2020-06-01 12:33:50 -05:00
Michael Stanclift
10c1c78545 Define method to extract .pub key for dropbear 2020-06-01 12:29:08 -05:00
Michael Stanclift
e18a4f6fdc ecdsa 2020-06-01 10:53:24 -05:00
Michael Stanclift
071332c77b move dropbear pub file creation 2020-06-01 10:51:38 -05:00
Michael Stanclift
67de66aa23 elif 2020-06-01 10:45:52 -05:00
Michael Stanclift
58e0b87001 fi 2020-06-01 10:45:37 -05:00
Michael Stanclift
d8ca2380ce Use dropbearkey to send keyfile is needed 2020-06-01 10:43:55 -05:00
Michael Stanclift
34d43eb238 Detect .ssh folder and create if needed 2020-06-01 10:26:45 -05:00
Michael Stanclift
e1180e7395 Removing a > 2020-06-01 10:16:36 -05:00
Michael Stanclift
62fc232205 Attempt to install ssh-client if not found 2020-06-01 10:13:01 -05:00
Michael Stanclift
0928a7a0be Testing for dbclient 2020-06-01 10:00:01 -05:00
Michael Stanclift
d6c5e100f4
Merge pull request #30 from vmstan:development
1.7.5
2020-05-31 14:41:57 -05:00
Michael Stanclift
a8884ab475 1.7.5 2020-05-31 14:41:20 -05:00
Michael Stanclift
be4a4de247
Merge pull request #28 from vmstan:development
1.7.4
2020-05-30 23:26:14 -05:00
Michael Stanclift
5e3b06e9cf Less bold 2020-05-30 23:22:37 -05:00
Michael Stanclift
50e0996f20 NC 2020-05-30 23:20:34 -05:00
Michael Stanclift
9778318e66 Make the entire info block yellow 2020-05-30 23:17:36 -05:00
Michael Stanclift
cd443f1306 Verbs 2020-05-30 23:14:29 -05:00
Michael Stanclift
3f4c0ee754 Yellow status 2020-05-30 23:09:21 -05:00
Michael Stanclift
b549f7d891 sudo 2020-05-30 23:02:21 -05:00
Michael Stanclift
7ea83a607b Fix restore of custom.list 2020-05-30 22:59:03 -05:00
Michael Stanclift
6015bb1972 Exit with change 2020-05-30 22:47:03 -05:00
Michael Stanclift
e16a3c4d84 No warning 2020-05-30 22:46:22 -05:00
Michael Stanclift
f8d6c0021b Remove beta function 2020-05-30 22:44:57 -05:00
Michael Stanclift
1e85db3bd0 Comment out might break 2020-05-30 22:44:30 -05:00
Michael Stanclift
00ee682b0b Quotes 2020-05-30 22:43:59 -05:00
Michael Stanclift
b29a53b238 Applying update 2020-05-30 22:42:57 -05:00
Michael Stanclift
ad72568e35 Validate Git completion 2020-05-30 22:42:37 -05:00
Michael Stanclift
5055366bc2 AND THEN 2020-05-30 22:37:36 -05:00
Michael Stanclift
df42d91c8b Check git status before update 2020-05-30 22:37:06 -05:00
Michael Stanclift
cfd49f7566 Clean up, clean up, everybody cleanup 2020-05-30 22:28:57 -05:00
Michael Stanclift
e1a7b9329c Tighten up verbage 2020-05-30 22:16:42 -05:00
Michael Stanclift
01ff343fba Bold! 2020-05-30 22:08:47 -05:00
Michael Stanclift
a9975d0630 Slightly less verbose 2020-05-30 22:06:31 -05:00
Michael Stanclift
b70aa3ad3d OK instead of GOOD 2020-05-30 21:58:25 -05:00
Michael Stanclift
4aaeda32f4 2>/dev/null 2020-05-30 21:35:23 -05:00
Michael Stanclift
7ac49933b4 distrocheck 2020-05-30 21:33:54 -05:00
Michael Stanclift
210cd53a1c Another try 2020-05-30 21:29:01 -05:00
Michael Stanclift
b8359ae505 apt install quieter 2020-05-30 21:23:02 -05:00
Michael Stanclift
385ef3812c Attempt to install ssh and rsync 2020-05-30 21:01:24 -05:00
Michael Stanclift
c63507c6c3 HOSTNAME 2020-05-30 20:52:01 -05:00
Michael Stanclift
028fee30dd Check for rsync too 2020-05-30 20:42:55 -05:00