Compare commits
4700 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5279ad8de8 | |||
| b409a95133 | |||
| 7d89c10954 | |||
| 88a0c83f8b | |||
| f913e7d4e8 | |||
| 9eb63b629c | |||
| 7a73bf2259 | |||
| 59d8ff7be4 | |||
| e37e13780e | |||
| 197b4fa09f | |||
| ff2dedaf11 | |||
| 1210b1f668 | |||
| b6e361ffbc | |||
| 62f0d54640 | |||
| a523190bfb | |||
| 9c6517930e | |||
| fb3dba1f3b | |||
| f9c7996c4d | |||
| 0d413a623e | |||
| d686599cf0 | |||
| f51834c3b4 | |||
| 24edded18f | |||
| 1805326b22 | |||
| db2c181fc3 | |||
| 990027dd15 | |||
| aa905ac13b | |||
| d5a42efd89 | |||
| 3eec3a66ec | |||
| e2d90052c4 | |||
| c33283530e | |||
| f7391b49de | |||
| b5cb65cf98 | |||
| 4dc5a0e52d | |||
| 3fd7d0289a | |||
| a23e855b66 | |||
| 22472383be | |||
| c478f4d8b5 | |||
| 6bc7835728 | |||
| 6a9a96caf2 | |||
| 37dc1b9313 | |||
| fd58971b94 | |||
| dac1bdcc4b | |||
| 8daa91ff71 | |||
| 7640165703 | |||
| 30d7f6b45a | |||
| ca5f9a69ff | |||
| 11f3607cc2 | |||
| 45b36941db | |||
| 13abb3b808 | |||
| d3bc931565 | |||
| bf434a9978 | |||
| ea4b49628d | |||
| 549cece2ed | |||
| b798e39c72 | |||
| 842f4e1819 | |||
| 5f8ed88681 | |||
| dfbdb7df77 | |||
| 670526fa54 | |||
| 1fd81f80fd | |||
| 3d946f46ea | |||
| 2dd1a6c778 | |||
| 8b98baaad4 | |||
| 2e6629dc98 | |||
| d912e698af | |||
| e2f5a7fa4b | |||
| e400fc796d | |||
| 7d860a9797 | |||
| 44ca72482b | |||
| 41b2131f16 | |||
| 62ea634793 | |||
| 4691f5c9d9 | |||
| 5b7490e242 | |||
| aebe0cab1d | |||
| 12853a181d | |||
| a74caab99b | |||
| 951fa3a635 | |||
| 52ea190b69 | |||
| 0f31adc330 | |||
| 4e4affb10b | |||
| 9512a8e6d7 | |||
| 38e94c9a25 | |||
| 616bbdbd68 | |||
| 22152d9ad6 | |||
| e67cf7e2d5 | |||
| 313768a660 | |||
| 2aefa77e85 | |||
| 35792d0eab | |||
| 4be9e30390 | |||
| cd0fc85aff | |||
| 6ad32eee9c | |||
| d91ec16675 | |||
| 09785cfa84 | |||
| 90131f9125 | |||
| a2bfca5a49 | |||
| 11c3a4608c | |||
| bff8b7ee1e | |||
| 33dcc9cec3 | |||
| d175e8c75c | |||
| 1446e8ec07 | |||
| b35af87e84 | |||
| 1e90e9b0f3 | |||
| 0fa169fa5d | |||
| cf8db395fe | |||
| a4d4e35400 | |||
| 36a467ec02 | |||
| 28be1ae4c3 | |||
| 844b9aa8f2 | |||
| e284dd75c3 | |||
| 146e485859 | |||
| fc1b127884 | |||
| 972101707f | |||
| c935818e40 | |||
| c227d97b92 | |||
| 0d884457b2 | |||
| b3d377cca8 | |||
| ee17235403 | |||
| b2c7ba26af | |||
| 1a27fb6cff | |||
| 065f05ee4a | |||
| c179b8b91d | |||
| 351c882e07 | |||
| dbc5a2b608 | |||
| 304ccb2740 | |||
| 01862edfe7 | |||
| 1a37127bec | |||
| 3001f93401 | |||
| 308ca1deea | |||
| 9692775469 | |||
| 9d53da9ebb | |||
| 7b3a9b916b | |||
| fe08a3a14e | |||
| 71ab463f4e | |||
| 0d060c1531 | |||
| f84f208c93 | |||
| 2cd00185ed | |||
| 2805bf1e80 | |||
| 3f6c5f1cf5 | |||
| 70994b3574 | |||
| bdcf3f62e2 | |||
| 5d74d7a668 | |||
| 3a620d800d | |||
| edf4be5b0d | |||
| d122f19133 | |||
| d8dbfe290d | |||
| 3d9784b5b2 | |||
| 8b8a25f1a1 | |||
| 86dfedca57 | |||
| b7d57ab9b2 | |||
| 022d98e670 | |||
| 97dd7bea1f | |||
| e74e74c02a | |||
| d4f2f30aae | |||
| 9493f6837c | |||
| 015a0405f1 | |||
| de51866474 | |||
| 1c23c3d658 | |||
| 74e36cb5cc | |||
| 5de6ef15cd | |||
| db8ff9107f | |||
| b7f6f393e7 | |||
| 4d8c980c1b | |||
| ee0854b5b1 | |||
| 90ce5df371 | |||
| 6aba8485d8 | |||
| ddac9258b6 | |||
| 27523620cc | |||
| f36421c267 | |||
| f2b038c4f4 | |||
| dddfa2bfb7 | |||
| d27218070a | |||
| 5c81e4a547 | |||
| 234af4c566 | |||
| 930ee2e6ff | |||
| ad647dea4b | |||
| b8ebc20e3d | |||
| 03ec73d873 | |||
| 8e2a6cf544 | |||
| 4868b0e937 | |||
| 375cfa5750 | |||
| d877fc99a2 | |||
| 0c38fb7880 | |||
| 279fe74451 | |||
| fbab12a073 | |||
| 2a2606162b | |||
| ac47f79db7 | |||
| b561a88895 | |||
| 084d5ef6ab | |||
| 94597c4a9f | |||
| 124aeb4de0 | |||
| c673996ca0 | |||
| 23ccd00914 | |||
| c80ee7e824 | |||
| 7c5a6aa0f2 | |||
| 72befd8c62 | |||
| 84c9cf8b2c | |||
| 09ebdc9c6d | |||
| cb086da17c | |||
| adeef4ac73 | |||
| f81a49c60e | |||
| bebdb06e6c | |||
| e49c26b0ea | |||
| f87069662a | |||
| 1c679471c9 | |||
| 9a8fa16ba6 | |||
| 3aed71f06c | |||
| efabd4f20d | |||
| b62189add6 | |||
| 311984c96b | |||
| e58704db66 | |||
| 383a6d6cc1 | |||
| b59f51efdb | |||
| a93ea29fce | |||
| 31ba2827cd | |||
| c14c49fbbe | |||
| 6d61c6440c | |||
| 2806976188 | |||
| 36bb049389 | |||
| c8f0b3016d | |||
| f9790d6185 | |||
| c4afc85f58 | |||
| 25a02819e8 | |||
| 6c3dce24af | |||
| bbe2c68aac | |||
| 1094b418a7 | |||
| 7e20b53771 | |||
| 2b95323a78 | |||
| cca5ca23de | |||
| e520ced656 | |||
| b41fb371dc | |||
| 102c02f40f | |||
| 66ab8dfdf5 | |||
| 5b52538cbb | |||
| d3f4231118 | |||
| 9355d1abde | |||
| 172c2d2a04 | |||
| 08713d45f6 | |||
| b0494998c4 | |||
| 9e0af7d6a7 | |||
| 18dee37957 | |||
| ec0c1b84b4 | |||
| 3876a6e9b9 | |||
| 42220bfa40 | |||
| 9e90b081fe | |||
| 3859a8c4e2 | |||
| 77abc3cc6c | |||
| e81e3a1366 | |||
| 2be9ca1e1d | |||
| ad5c0b4691 | |||
| 779cedd561 | |||
| 331f97a10f | |||
| 864079ef59 | |||
| f1c267cd83 | |||
| d31161a314 | |||
| 64b6919f42 | |||
| eecb6bb02c | |||
| 31d34784da | |||
| ea69a6d84b | |||
| 74a0f81c0f | |||
| c7fd86be6b | |||
| c402260122 | |||
| 6e31d8dd61 | |||
| b7bf5f5209 | |||
| e31e7fdf83 | |||
| 7fc800e18d | |||
| 48854c05c4 | |||
| 3e428d49b6 | |||
| 716e39cd70 | |||
| de7837c831 | |||
| dbf0c65d41 | |||
| 465bbc0ec1 | |||
| 116913a8d0 | |||
| caec4404a6 | |||
| 6f6b272f06 | |||
| cd5f440dc1 | |||
| 3e19b6aaee | |||
| 4f386997d5 | |||
| b5ee34e772 | |||
| 555e2e4756 | |||
| 5892c88807 | |||
| cf023a7260 | |||
| 4d675e05e1 | |||
| 5015fc4724 | |||
| 5784adf161 | |||
| cca852f424 | |||
| 7426a945c5 | |||
| 0cba3dafa9 | |||
| 48ed3c6cf6 | |||
| 15f04b688a | |||
| 33276b4149 | |||
| 777b290906 | |||
| 5972049712 | |||
| 75fd5f1f8c | |||
| f98de84f60 | |||
| 9dd9e097f6 | |||
| f8f7ccd377 | |||
| ae7d845f66 | |||
| b89b906920 | |||
| 0a9e1c716c | |||
| c76fbb687e | |||
| 7d93db8d7c | |||
| e8079ac6aa | |||
| 4ec0d70521 | |||
| dee1ce1ab8 | |||
| 4e9533afd6 | |||
| 488d918b69 | |||
| f2d5232777 | |||
| 475b5f419b | |||
| f68848ebc1 | |||
| 27c6381ae9 | |||
| 5a36d25cda | |||
| 9c3665bfc4 | |||
| 94a52994d9 | |||
| 83a2674d7e | |||
| 949923aa72 | |||
| ff6742ff29 | |||
| 86991562eb | |||
| df2ff26264 | |||
| 60a934103d | |||
| 90b0e8a20f | |||
| 466e825c95 | |||
| 0c00972a9c | |||
| 6d676a6142 | |||
| f1706639e6 | |||
| 9d27d74e69 | |||
| 5c648053e5 | |||
| ab5eb772de | |||
| cf0366d938 | |||
| 094718e5d6 | |||
| bd6da1caef | |||
| 6f45fb5b73 | |||
| ee198f9c36 | |||
| ee3b381620 | |||
| b9547109e6 | |||
| 564003271a | |||
| f4304fd6d3 | |||
| 28f7b30993 | |||
| 340cd7f0bd | |||
| 1fd348569e | |||
| a9f0e75888 | |||
| 2ca05f92fa | |||
| 3e3b42ed25 | |||
| 94214f9dda | |||
| 7a4efac28d | |||
| a694f1c6ff | |||
| a51e876a3e | |||
| ea70fc598a | |||
| 36431132ae | |||
| 3b50ad220e | |||
| f09a9ab3cd | |||
| 39b34e336d | |||
| 7df426fb82 | |||
| 573ec1ff54 | |||
| 71333e822d | |||
| 4e41e819d8 | |||
| 57957c1924 | |||
| 2786f2eedb | |||
| a0e42d40eb | |||
| c06625f696 | |||
| 68ef5a7b35 | |||
| 83924ece5d | |||
| e74c03b4d0 | |||
| 572f307889 | |||
| 39124d617b | |||
| a217fae292 | |||
| 2b7c539d95 | |||
| 56ae423622 | |||
| 0f14a27fd4 | |||
| f190f490b8 | |||
| ff4f986e0c | |||
| 808c2f36aa | |||
| a9d0e2b3c3 | |||
| 63569e95f7 | |||
| e6eaa61451 | |||
| 49c95278c4 | |||
| 36c9dffc35 | |||
| b4451ed3fc | |||
| 4352ee3df2 | |||
| 676de59edc | |||
| 04f3d1dbff | |||
| ad0711399e | |||
| e4ba5e9ffb | |||
| 6145447d08 | |||
| 2ad68f2cef | |||
| d726a36b06 | |||
| f0b5aeb5ba | |||
| dbb899915c | |||
| 3a6f92ea4b | |||
| 8d255f6e3b | |||
| e867e0cbce | |||
| 043904aaad | |||
| 728fd22d3e | |||
| 03f0c0edcb | |||
| 6307553ba8 | |||
| 5acf9e6c78 | |||
| 6bfc699004 | |||
| 78e1015d61 | |||
| 7a764612a3 | |||
| 3d6226bd94 | |||
| ccd1e35c08 | |||
| e8e310ddea | |||
| 98fd5df3da | |||
| 87fb21b601 | |||
| 7d5791ea1e | |||
| 7538cd7ee8 | |||
| 80c0824a88 | |||
| 257a659358 | |||
| d95ddd3671 | |||
| c16f2737f2 | |||
| 8c7e7060c0 | |||
| 21b4e662b6 | |||
| 5c9135c924 | |||
| 7bd96e3cb9 | |||
| 42c16aab62 | |||
| f6aa98f7d4 | |||
| a7ca9a748a | |||
| 9d91faac9a | |||
| 26862838cc | |||
| 410718af0a | |||
| 87481e48e6 | |||
| 01fcc31cc0 | |||
| 54c4523821 | |||
| 36e49b3e15 | |||
| 1d5bfbb0a1 | |||
| 449f1d60d0 | |||
| aec704a874 | |||
| 7086cef484 | |||
| 0e5799f410 | |||
| ff566133bd | |||
| fd648c53b8 | |||
| 07fac9c732 | |||
| bd43fafbd9 | |||
| 53a89cfc30 | |||
| b02c2a1ffe | |||
| 0e2740b9bb | |||
| ea0061505e | |||
| bd7725d34d | |||
| 2d9e074857 | |||
| 32772f7db9 | |||
| b4871b873d | |||
| 56def26da3 | |||
| 77934e32c8 | |||
| b73cfac202 | |||
| 295d1baa82 | |||
| c4f6e0336e | |||
| bf485b07dd | |||
| 0a936ccabb | |||
| a33e7ce2db | |||
| d5be494ff2 | |||
| 0357df5558 | |||
| c74d322e3f | |||
| 0f5e2a294c | |||
| b9fcf63a39 | |||
| be180b4203 | |||
| bc5f02239e | |||
| 358f2b4f45 | |||
| f2dc978d67 | |||
| 66a425cb77 | |||
| 6df7ce5ab8 | |||
| e2ef24cf78 | |||
| 408071af1f | |||
| 83c29df18c | |||
| 32bb943ec6 | |||
| 8ee58ffaeb | |||
| 0b5d51a987 | |||
| e0f966e10b | |||
| d1ffd89a77 | |||
| f71c1c6a77 | |||
| 30dcbb3f92 | |||
| 344b4e7e48 | |||
| 538488192d | |||
| 51bfc3f1fe | |||
| e3b482a0d6 | |||
| c6a30447e6 | |||
| 5ec01a6131 | |||
| a1f3f94d57 | |||
| fc1dd75796 | |||
| 862fcc2d41 | |||
| 83d52dbcd7 | |||
| 6250bb353d | |||
| 2cca9efb4f | |||
| 177c43c5e3 | |||
| 08668aaab5 | |||
| ccc7999fdb | |||
| f6f34ec52e | |||
| da17e97f3e | |||
| bfa3d0528c | |||
| 0c301eec2f | |||
| 6f8580f0ed | |||
| b2de635a61 | |||
| 5b57151ec2 | |||
| 988d86efc3 | |||
| 3b23851509 | |||
| 4558e5f197 | |||
| 93adac3539 | |||
| 37024e8ddb | |||
| 5539893078 | |||
| 95492fb70b | |||
| 15abf25276 | |||
| c6538c86dc | |||
| baa0e7f489 | |||
| 638b60825d | |||
| 8b81c6e0da | |||
| edc8f6a6d4 | |||
| b36b243804 | |||
| e85b69c8af | |||
| 2654ec02da | |||
| 1e25e0b614 | |||
| 8812aae1a1 | |||
| eecbc758e0 | |||
| 2935fa9457 | |||
| b30b397312 | |||
| 68cbd3f674 | |||
| f94ac0ff49 | |||
| ed9a119417 | |||
| 674b0edea4 | |||
| ef53f4dee5 | |||
| 0c0503ec85 | |||
| 684d3d1812 | |||
| 2ccdb07b14 | |||
| 8abccd4bf1 | |||
| 81c4836b67 | |||
| 16a40701f1 | |||
| 917aa37aba | |||
| 2f44630aa6 | |||
| 699c5035a4 | |||
| 59cc506aa7 | |||
| 85a3f1e63a | |||
| c602b38157 | |||
| ff11afb136 | |||
| c385963812 | |||
| 6acf3a4bda | |||
| 7003f5d1ae | |||
| 803d910acc | |||
| 80834c666a | |||
| 2f0628bf3d | |||
| d83f904b71 | |||
| 4f2e72bad5 | |||
| 9a4e72b372 | |||
| 70a485a51a | |||
| 4a82d16fc5 | |||
| ec14e638e7 | |||
| cb2d0d0237 | |||
| b8b86e3b15 | |||
| d36f1630a5 | |||
| a7db1c3a3e | |||
| 48a9aeaaa4 | |||
| 653ca70784 | |||
| 9b42ff1318 | |||
| 8a162ee0ab | |||
| 4137533560 | |||
| 6766d393cb | |||
| 0748d01f33 | |||
| ecee929c8b | |||
| 1012e3efb0 | |||
| aa1a2c1389 | |||
| 946437d1be | |||
| 458dc5e748 | |||
| 8281f9d298 | |||
| 36d0391eab | |||
| 783145a600 | |||
| 9e085747ce | |||
| e93a41c823 | |||
| 463dbb27c7 | |||
| 6f144484e3 | |||
| 6f1cb0eff6 | |||
| f4897c4057 | |||
| d4d3968c27 | |||
| e05482e87f | |||
| 8e66e59628 | |||
| f83d8ce917 | |||
| c831f4a37c | |||
| 862fe17f23 | |||
| 1046ddcf66 | |||
| 2a683b1424 | |||
| e4223d9bea | |||
| cb324eff12 | |||
| 23415e69d7 | |||
| d2673c887a | |||
| f8611de79f | |||
| 04191900c2 | |||
| ca807f760d | |||
| 235c2ea59e | |||
| 5720deba4d | |||
| 41e8ec949c | |||
| aef6dda8e5 | |||
| 3a5607f1f8 | |||
| fff9def9e1 | |||
| f72d153998 | |||
| 71e02175b6 | |||
| 4277f25fef | |||
| d765e4ae98 | |||
| 6bcedd82dc | |||
| c53df8ead8 | |||
| 1458a0eb35 | |||
| aec08a1bad | |||
| 713ba2f17f | |||
| a8f7dc9bed | |||
| 98b332d6a5 | |||
| 2d6c5daff8 | |||
| 95956ef48a | |||
| bf79c9c605 | |||
| 80996ab260 | |||
| bc80d13bed | |||
| 33d7f540a5 | |||
| 234a8cb1b3 | |||
| c40e0d9639 | |||
| ba36451e2a | |||
| 644219ad6e | |||
| 2ba7ffe238 | |||
| b58856bca1 | |||
| 450459dfb2 | |||
| 5ccb7f6e95 | |||
| 20a5be1a40 | |||
| b7da13eb5f | |||
| 2d1790d636 | |||
| 0d4ba5a28a | |||
| a1ad64c0a0 | |||
| 4e204fa990 | |||
| aa553db885 | |||
| 35e196da64 | |||
| fa0339cd82 | |||
| 445f608a7f | |||
| c6cd22faa4 | |||
| 3da4092bc3 | |||
| e52a525975 | |||
| f16acc23da | |||
| d257a34c5f | |||
| a44755b713 | |||
| 346839f5fd | |||
| 33db33e9ec | |||
| 04c9eb6a95 | |||
| fb0a19a657 | |||
| 876991ba68 | |||
| 1b734fbf70 | |||
| eb45715811 | |||
| ad4a24686c | |||
| a46714e55e | |||
| d33d53746f | |||
| f0560cad4c | |||
| f94b5bef1b | |||
| 840fc47907 | |||
| c413553766 | |||
| a1b2f6425a | |||
| 657f63125b | |||
| e78c4087d2 | |||
| f6d00cae0d | |||
| f79d9fc7b3 | |||
| 84a00dbfea | |||
| 348fc2c16c | |||
| 5c0cf69d68 | |||
| 47a78f3338 | |||
| d8e1104caf | |||
| aeaae0ff35 | |||
| f14a3be2be | |||
| cb806f3db6 | |||
| f6833ccb39 | |||
| f111fdbbd2 | |||
| 601e8b5bc8 | |||
| dd8b7dddfb | |||
| d828e740ca | |||
| d81e95b18b | |||
| 6da102a917 | |||
| 587fafedd6 | |||
| 1fb29dc7bc | |||
| 535c3c132c | |||
| 79d36ad9f8 | |||
| d7e73afbe9 | |||
| 3299beb658 | |||
| 4a72fdb294 | |||
| f0c0f9e4d3 | |||
| 53fc6254fb | |||
| ff8f077029 | |||
| 7b0edb5779 | |||
| 6253a68558 | |||
| 63de5b3dfc | |||
| 518cdcc290 | |||
| 99bbee2ede | |||
| 4898e984c1 | |||
| f0bfc64fd7 | |||
| 5e560095b4 | |||
| 5b94da0601 | |||
| 3c7def3995 | |||
| df0edae3b9 | |||
| 56b4e62b28 | |||
| 94af7bc9e0 | |||
| 7fef8b20cf | |||
| 08b86f48ab | |||
| 46870d5aa0 | |||
| c3449f93ed | |||
| cebd764515 | |||
| 47761c99d2 | |||
| a81db14a28 | |||
| 2a787aa34c | |||
| 429817d44c | |||
| 882679126b | |||
| 94fa3be370 | |||
| 8f7c3b09b2 | |||
| f279269be8 | |||
| 08f41866d1 | |||
| 3fb62771cb | |||
| f80cea204a | |||
| 538071ea34 | |||
| 3da3ffe33c | |||
| a88059ee71 | |||
| d8996973e0 | |||
| 1ffe0f5553 | |||
| f3caf06c05 | |||
| e96efbce9f | |||
| 32b1c0280b | |||
| b021a9e6b0 | |||
| 6d72d6c476 | |||
| 536725de1d | |||
| cd4f20ca49 | |||
| 60f57580a2 | |||
| 379b539120 | |||
| 9949d48ae9 | |||
| 2a0fcf87be | |||
| 6144d635e0 | |||
| 0a48c5789f | |||
| 6ef99ef2ea | |||
| 8faaa94792 | |||
| eebc1d72ba | |||
| 4ef6379264 | |||
| b55096acd4 | |||
| d534f9a5fd | |||
| 15b40c20ca | |||
| 95f7843973 | |||
| 108d9bca2b | |||
| 317bbcdc22 | |||
| d108c72a74 | |||
| fa6c022d30 | |||
| 3363ed4346 | |||
| 2dffc2a5f7 | |||
| 5391e8bf74 | |||
| 21b6550328 | |||
| cb917eda92 | |||
| a2692683ef | |||
| 1962e48324 | |||
| a5cc74a7d8 | |||
| b27d089ffd | |||
| b5781550ac | |||
| 2a9ef59d30 | |||
| 80477585a2 | |||
| a35f062b64 | |||
| e1d413ac67 | |||
| e8ff290a27 | |||
| 75e2a54621 | |||
| 296279d5db | |||
| 410dbe476d | |||
| 3d540f90b4 | |||
| 84b939d924 | |||
| 5823b4320f | |||
| 56b13d53b7 | |||
| 6527ee6f14 | |||
| 4e47479104 | |||
| 596a207340 | |||
| ac3e303d1f | |||
| 3c26dcae65 | |||
| 16474c6b55 | |||
| e7bd62d168 | |||
| ef5940e53b | |||
| c565612293 | |||
| b8261bbbed | |||
| 47543fc516 | |||
| 1c2cc14e74 | |||
| c4e8a5c89e | |||
| fcdf16ce0e | |||
| 5a4b897035 | |||
| 95f8230c75 | |||
| fcda6d4ce6 | |||
| d55360b018 | |||
| ab9e4b75c1 | |||
| d76ab800f8 | |||
| 38d7249a75 | |||
| 1afd5e5b2b | |||
| a6b993ad89 | |||
| 033da9326f | |||
| 88eb6a5338 | |||
| 0b8c55561e | |||
| 9e4b671e68 | |||
| a20fd31c4f | |||
| 9373069ede | |||
| 311443ae78 | |||
| ec39658ca9 | |||
| cc56c2c6ea | |||
| 2ad935faf0 | |||
| fe2a86ceda | |||
| 421ed67cac | |||
| 3ce21c71ab | |||
| 45f255cfca | |||
| e50a268ca2 | |||
| 557f5cb9c0 | |||
| 62069ee3a7 | |||
| b0b39e95d2 | |||
| 4739976344 | |||
| 1a6385b45f | |||
| dd4dd0744c | |||
| 6dc210479f | |||
| 00ec37a6a0 | |||
| eb07fdd483 | |||
| 42a4b525dc | |||
| f60a90cb58 | |||
| 4982166895 | |||
| 6ca7c9775a | |||
| eeceadc4c5 | |||
| 15d1fc3d2a | |||
| 89819a8f85 | |||
| c2c8cf6989 | |||
| eb9d51fc50 | |||
| b2446932f0 | |||
| 46a279f77a | |||
| 2bf5c81684 | |||
| df839c32ea | |||
| efca83e9a1 | |||
| 7cee52fbd6 | |||
| 4270787b75 | |||
| ef80d3df5b | |||
| a7bbfc5c85 | |||
| c24fb6debe | |||
| 18aa6ce61d | |||
| fb4a3a2421 | |||
| 46a849d504 | |||
| 87e27b07b3 | |||
| bc8e20f16d | |||
| 1fe9ece227 | |||
| 939c320f6b | |||
| faa803a93e | |||
| 97ad1a42cd | |||
| 7087cf43ce | |||
| de645f48f6 | |||
| 2b2dcd2a76 | |||
| 934e56be1c | |||
| 7fc548e159 | |||
| d74491f0b3 | |||
| 96406fe37c | |||
| cf1aa0cade | |||
| 91969e380b | |||
| 51a0779fea | |||
| a64a80beaa | |||
| e961954ba3 | |||
| e6969ca521 | |||
| 49b7f18d89 | |||
| 8cf77bb44a | |||
| c39d0f0460 | |||
| d191df974c | |||
| 29d44f55a0 | |||
| c495dc2e0e | |||
| 3d3a29332a | |||
| 743a798d62 | |||
| 1fcc223791 | |||
| fa8614d837 | |||
| 6fdfd4e52e | |||
| 82dfd6e7fd | |||
| 0896849839 | |||
| de82f825e9 | |||
| 580b014015 | |||
| a8f94b58c2 | |||
| af1c9b30cd | |||
| 06ef651c67 | |||
| c81078f1fb | |||
| 0d02e7b668 | |||
| 03e769d605 | |||
| 731c3a8a00 | |||
| 3ecf0bb09b | |||
| d8388f56f8 | |||
| 46bde6d296 | |||
| 9f77ec0bc6 | |||
| bcf651d39f | |||
| 25bbcdbd8b | |||
| 0ff8cc6b3a | |||
| f39b9ad25b | |||
| d9501b4635 | |||
| ddcf95486a | |||
| ddc152eafc | |||
| 7c0f4c5cfc | |||
| 55e38143e5 | |||
| 42ff640495 | |||
| 01bf4e70dc | |||
| f978cc9838 | |||
| 2a12646f90 | |||
| d55405b834 | |||
| 5b6a1aaf90 | |||
| ceadabeb50 | |||
| 24a10893fe | |||
| 5c04830834 | |||
| 5730a2c96b | |||
| 804b539ac0 | |||
| f9b5f575c1 | |||
| 22b8d6c970 | |||
| b1a62a9cfa | |||
| 9e6687b3ae | |||
| 7f92f7358e | |||
| 3c743c3461 | |||
| 9c0e199b55 | |||
| d67eab517d | |||
| 7afce68c3a | |||
| 6a8fe4ef02 | |||
| b80f1b7b56 | |||
| bf2e8f3e67 | |||
| d4a996671b | |||
| 87ab8b9f2c | |||
| 1449eed1e0 | |||
| 0cab9f0cae | |||
| 61f0c6d89f | |||
| cd435f69ed | |||
| 5241fb1767 | |||
| f569b32977 | |||
| 5f5bc4cb7f | |||
| b62963b04f | |||
| b621768a12 | |||
| 7a03b0b461 | |||
| 6ced315ba5 | |||
| 41a8775ec9 | |||
| 6013ead499 | |||
| d2c72f042f | |||
| 3f94604dde | |||
| aacf3235ad | |||
| ae9d3ca927 | |||
| 342171a417 | |||
| 6136ebb7e8 | |||
| cedd71f56c | |||
| af2aa16cd4 | |||
| 74cdcdb1b1 | |||
| fad668cabb | |||
| 598ff3ca70 | |||
| e93d906b78 | |||
| 5f4a0cf4f3 | |||
| ac0d5f384b | |||
| 4b292d918a | |||
| a5c6810107 | |||
| 355790e56c | |||
| f73ada635b | |||
| cddefe2e5a | |||
| e4ec9f2076 | |||
| 25330c8faf | |||
| 81c98e5dd2 | |||
| 022b63d35e | |||
| 6cb3aacab1 | |||
| a9e4d0c92d | |||
| 7689eadc97 | |||
| e13e262732 | |||
| 00f746e6e9 | |||
| 4e1df6c70f | |||
| 58c3f8ed5c | |||
| 6c69731806 | |||
| a59b80c361 | |||
| 15a897d4d3 | |||
| a613f23ef8 | |||
| 70336b8265 | |||
| ce4f9b2d5a | |||
| b2fb0ca07b | |||
| 81d40187b3 | |||
| 5791731b0f | |||
| 3612133334 | |||
| 1b4e1c363b | |||
| 66c83e5d56 | |||
| f09fd85459 | |||
| 4e509a5f63 | |||
| 8954aeb3cb | |||
| 0aa504aeae | |||
| d39315fa28 | |||
| b9e4fd30ca | |||
| 53b4b9fdfb | |||
| 2b8ca39820 | |||
| c23c587c7a | |||
| 6ea04578f6 | |||
| 9329bb5b3b | |||
| f02f156120 | |||
| 62d561d4da | |||
| 47d609399f | |||
| 498bf930e3 | |||
| d67d052d90 | |||
| 029bf0902d | |||
| 38045ecb61 | |||
| b17f27a77b | |||
| e81bbda816 | |||
| f685782b22 | |||
| 516db482f0 | |||
| 7e2472f045 | |||
| 7c55236a72 | |||
| 34bdb65f88 | |||
| ddbac516cf | |||
| ecebc2141f | |||
| 23e24b1ccc | |||
| c9fb22be1e | |||
| d4ea3cf36c | |||
| 3473cec9e1 | |||
| 8ea501f1f4 | |||
| cfc05c95e3 | |||
| 143e86855f | |||
| f14c6f12c2 | |||
| 135d7aedeb | |||
| ad6269dc9a | |||
| 58353ba7db | |||
| 3498663f92 | |||
| 1f9adec834 | |||
| 48ea2f38aa | |||
| e028166e74 | |||
| 9e1b4e75a6 | |||
| c93b4f5ad4 | |||
| 8f6dfa204b | |||
| d553632945 | |||
| a7fc990f02 | |||
| ce7e03d215 | |||
| d77b8ab6e5 | |||
| d8ca6c6cb8 | |||
| 4eaee6d463 | |||
| b3f642d934 | |||
| d9a2a3b08f | |||
| b08699b5b7 | |||
| 770feb551b | |||
| 1152ac7e56 | |||
| 5448810e83 | |||
| 61806c636e | |||
| 12bda7dcc6 | |||
| d08c29df7d | |||
| dd4b0f2fe1 | |||
| afd95fd7f1 | |||
| 77f6a37a02 | |||
| 298b5cf3e6 | |||
| 524982c8d5 | |||
| a2e0898391 | |||
| 4d10b6bd96 | |||
| e9d63d1068 | |||
| 14dc53ffb3 | |||
| 85a969834f | |||
| 0b092047d0 | |||
| 783f2debba | |||
| dd3422b4d0 | |||
| b556101c6b | |||
| b730ae6819 | |||
| 0128e598f4 | |||
| 742a877ac2 | |||
| 1541f7d054 | |||
| 61e64a9726 | |||
| 6690f37110 | |||
| 64b2a171ab | |||
| eb79c1de53 | |||
| 81133a0ce7 | |||
| cb2a091205 | |||
| 7adeb8a4da | |||
| d261536e50 | |||
| bb5e1699dd | |||
| 837dda2b69 | |||
| bd1a0d31a4 | |||
| 72162f6ca8 | |||
| ac9ced0b52 | |||
| 9035616309 | |||
| ec55e38a94 | |||
| e75b602b0f | |||
| cb6578c0cf | |||
| 9d55956485 | |||
| 7d541af072 | |||
| 4ceea7eb29 | |||
| aa256be1eb | |||
| eeb121768b | |||
| 3eb7a5416a | |||
| 85defcd96d | |||
| 24af0fb85e | |||
| d1cc7f6507 | |||
| bf09affcec | |||
| 749359a70b | |||
| b2b1b660b6 | |||
| 55d1ae661a | |||
| 0435fe023e | |||
| 322c29c88b | |||
| 3d95158149 | |||
| 7432d05edd | |||
| 1d54577ecb | |||
| dec70da1b7 | |||
| 3f3dc2fa7c | |||
| a04ff10ed7 | |||
| a08a89461d | |||
| 5dfa248c30 | |||
| 2c70ae0c8d | |||
| 8427c4ee56 | |||
| de9d727f48 | |||
| c40aad23df | |||
| 2310496b55 | |||
| 75511747b0 | |||
| 433da435b0 | |||
| d9fe2d7a34 | |||
| debc312cf4 | |||
| f5515f9052 | |||
| 894f8fa5cb | |||
| f2702a4773 | |||
| 344a7f86e6 | |||
| 4e201a79f2 | |||
| b86b704bfa | |||
| 69ceceae08 | |||
| 9bd5b46d97 | |||
| eb4efee4de | |||
| f77dbbac5a | |||
| d14859c228 | |||
| ea87927510 | |||
| af767af872 | |||
| bb484f8bf8 | |||
| 22607083dc | |||
| 14e7fea2a1 | |||
| 77c48f8001 | |||
| 970cec5141 | |||
| e04e76eb17 | |||
| 74b8a26ddb | |||
| 9678a0e43e | |||
| e93991ca12 | |||
| a4f957d6b8 | |||
| f96da3c8c7 | |||
| 2d16c51f55 | |||
| 007599a0dd | |||
| ec2a8274fd | |||
| da3e71d258 | |||
| f860e7e4cc | |||
| d14f5e57ab | |||
| b8cb511da7 | |||
| ff0e9cdb69 | |||
| 7902b6b840 | |||
| feeca80fff | |||
| 3ea6995925 | |||
| d319601140 | |||
| 8783e0edee | |||
| e05c11473f | |||
| 9cd897f175 | |||
| 6d11c1d19c | |||
| 8c691df793 | |||
| ae674d212c | |||
| 6f46f1e00a | |||
| 535caabf43 | |||
| 8137f0a897 | |||
| ed1c5c84af | |||
| 1411b23743 | |||
| 7a70011b0a | |||
| 88c3793d03 | |||
| dbdb45164c | |||
| 3592c00cf2 | |||
| 3c0ba84422 | |||
| ecf14d2481 | |||
| af191cbe11 | |||
| 288a7f7e5c | |||
| 97dab5eabd | |||
| 09716fc07e | |||
| 568d872e56 | |||
| b90d6cc853 | |||
| 0f9dc20f34 | |||
| 297da1e79e | |||
| e408b8bfda | |||
| 9ddf7ef113 | |||
| bd702bb42a | |||
| 66463d0b53 | |||
| ff70b5081c | |||
| 29986949bc | |||
| be78c3e4eb | |||
| 60aed54eee | |||
| 60ee374c5b | |||
| cc19d846e0 | |||
| d8819e8059 | |||
| f5a8fc0b09 | |||
| 61812ffb49 | |||
| ceb1ac85b3 | |||
| c9cf485522 | |||
| 5fb863019b | |||
| fde62b487c | |||
| b358b8f557 | |||
| c654a3f46a | |||
| b5daaaab3a | |||
| dbdc80d35d | |||
| d6fd84ae48 | |||
| 30f19f20c4 | |||
| bb818497d9 | |||
| 7ff81bfd15 | |||
| b007e58bed | |||
| 4f05c4f4eb | |||
| edc6e1ded7 | |||
| f012b7e540 | |||
| a3c96d1bdd | |||
| c61edee621 | |||
| 7cdffff4f0 | |||
| cf0b257a7d | |||
| fac177b8f3 | |||
| b7dadcbdec | |||
| dbff3c4895 | |||
| 89aea9ed4c | |||
| cdf3beb5e1 | |||
| cc241c9acf | |||
| 367039603d | |||
| ce24323602 | |||
| a79c28de15 | |||
| c2052dae1c | |||
| 19f04b7d54 | |||
| 0160e10adf | |||
| b7a2ae918e | |||
| 09bdddc994 | |||
| 9d61670c03 | |||
| d4b699c532 | |||
| 5fed5d6771 | |||
| 5dda4d87a1 | |||
| 766e27864d | |||
| 871de1f97b | |||
| 4ba4f88905 | |||
| 74d75c723a | |||
| e2b1112518 | |||
| e77b9826f4 | |||
| bae1ecf074 | |||
| bead29c391 | |||
| dbd63fd416 | |||
| 7554bbcefb | |||
| 349b015d71 | |||
| fc51fcada8 | |||
| 73b02828f5 | |||
| 2bc7c302df | |||
| 3275932c91 | |||
| 1e52060bbb | |||
| 3e725f45af | |||
| 1890b28409 | |||
| 9a524dd29d | |||
| 00cb61497e | |||
| 1626f2fed8 | |||
| 965e2e94d7 | |||
| 60be208262 | |||
| a34ac85f42 | |||
| b3cdd2d023 | |||
| 4c49eb1971 | |||
| e7d94e121b | |||
| dfe2c06cdc | |||
| 95b0b10086 | |||
| f4d7a3b1ba | |||
| 7108719674 | |||
| 7195f9617b | |||
| aa3d9b11b4 | |||
| 0c7a59d7dc | |||
| c579b265b1 | |||
| 3cd3213d95 | |||
| 07d6b57f3d | |||
| 81944e6375 | |||
| 2d4ddec156 | |||
| 8062f54e0b | |||
| c56ab32547 | |||
| 45146a6f61 | |||
| 004e653c09 | |||
| f40db4933a | |||
| 5bb41e5915 | |||
| bb68b10213 | |||
| a0b1f2003a | |||
| 171e8b30b2 | |||
| f78deaa45b | |||
| c575b94ea2 | |||
| 2d2003c2ca | |||
| 60a3f5a443 | |||
| ceafa510ec | |||
| 6052c04908 | |||
| 17917ca0f7 | |||
| e9294d58c7 | |||
| 2458d56da2 | |||
| c18783e3db | |||
| ac9c43bc37 | |||
| 01004310c4 | |||
| 1071985f71 | |||
| da4db697b0 | |||
| 48f26ef0ff | |||
| 03c65a3986 | |||
| d213ba54dd | |||
| 4b3c701411 | |||
| 62111fe2fb | |||
| 6c3b64f7b3 | |||
| bee986ed6e | |||
| 4cdec3806b | |||
| 99aedebe2a | |||
| 10e4951b77 | |||
| edf13c8d6a | |||
| 52c202187c | |||
| a284aecc22 | |||
| 80febe9611 | |||
| 50126dda52 | |||
| c5be19538b | |||
| 0d3c9d2722 | |||
| b18111363d | |||
| 45cca590e6 | |||
| ce6a08ce5e | |||
| 2cafd992cd | |||
| 9c9f9a7736 | |||
| 1fc64216c5 | |||
| cb509c6ced | |||
| 6f548c2dcf | |||
| 69a35755c4 | |||
| 2b391900b2 | |||
| 31d34071c7 | |||
| 3e72783278 | |||
| dc26fbeb4c | |||
| a0f432a505 | |||
| 075629a50e | |||
| 8c32f98735 | |||
| 85c3b50f45 | |||
| a0afae5ab8 | |||
| 9a271f98a7 | |||
| df388c246f | |||
| ed38c42d52 | |||
| be95be48cc | |||
| 7645d4d8bc | |||
| e16c9f65ee | |||
| fdbf2f3eff | |||
| 08212ce67f | |||
| 005c5cfb38 | |||
| df75dc4846 | |||
| 6737eb4c24 | |||
| d9f81633ce | |||
| d01c6c1f34 | |||
| a4a6a1d57a | |||
| acf852835f | |||
| c51d4c5dc6 | |||
| ea2635ca1e | |||
| 4a6d35db7b | |||
| c973515173 | |||
| 258fa89abb | |||
| eb1b9dd28f | |||
| 0da26a412f | |||
| 65ae3fcfc8 | |||
| 7feedc161f | |||
| 3f740ce69d | |||
| e19481d471 | |||
| 1c52f8f130 | |||
| a83d878648 | |||
| 6f35ee573e | |||
| e3a315b853 | |||
| 973cdd3b75 | |||
| ebe5b8c2da | |||
| 457d28b977 | |||
| a4076bde17 | |||
| 7b426a28e7 | |||
| 1de2d2c20b | |||
| 7c2050a48c | |||
| 54024d0b3a | |||
| 5bb5839429 | |||
| 2d5bbb85e6 | |||
| b6d604b56b | |||
| af7988c1a9 | |||
| 27751860eb | |||
| 2b12bad056 | |||
| 8693e1d910 | |||
| e00b73db71 | |||
| 3315a9a66c | |||
| 037a80657c | |||
| 3b7e5bbfb3 | |||
| b21edba60a | |||
| 56f5579d88 | |||
| 673b83edf5 | |||
| ab18badf2e | |||
| b6ee3deede | |||
| e04f2545f3 | |||
| 812a4dba12 | |||
| 0ef6a48eac | |||
| da7b0814a0 | |||
| c1b4fd8c91 | |||
| 3b5e1ec3d4 | |||
| de627da332 | |||
| 9e12de75f7 | |||
| 31df04f918 | |||
| bb9e5071df | |||
| b7c4248604 | |||
| b9b7bc4897 | |||
| 5f1268ded7 | |||
| 6aba14e208 | |||
| ab415aee64 | |||
| 0099639607 | |||
| 8a66993f00 | |||
| 5b6606f31b | |||
| 23ce900dce | |||
| 54fd9db1c2 | |||
| 7006c1fd89 | |||
| fd09245535 | |||
| 7ecda10f72 | |||
| 3fb137699e | |||
| eb662addd4 | |||
| 4ca2bab2f2 | |||
| 5754b5455f | |||
| 81e1e12a3f | |||
| 6f5433b555 | |||
| 973fd85aaa | |||
| 2373c0bfe9 | |||
| ee38b31032 | |||
| 513d3e842b | |||
| 3062a93bb3 | |||
| 29e258fbdb | |||
| 1f87c3f9c6 | |||
| 07deb731b7 | |||
| 26bd211441 | |||
| 27526e1cb3 | |||
| bec73d745c | |||
| 0fd8eb07fa | |||
| be28834010 | |||
| e24c412e14 | |||
| d5fd8fe21f | |||
| a890795aec | |||
| e343526124 | |||
| 2f4e2ccffe | |||
| 0efcdbd0c5 | |||
| 10daf86056 | |||
| 7732b58846 | |||
| 1cab2fd166 | |||
| 29a68fa8fa | |||
| 3f01c56a54 | |||
| 496ffa28f0 | |||
| 9dab4a07ae | |||
| c224952a64 | |||
| aa51568b4a | |||
| ae218c4afd | |||
| 43fbb109c1 | |||
| e3fa78df50 | |||
| 381b463806 | |||
| d97586e32e | |||
| dfd987c685 | |||
| 9173d3204b | |||
| 71d31aa31c | |||
| d8b9378a25 | |||
| a3fb65cecc | |||
| ad7e41f937 | |||
| 6bb84d013d | |||
| 3c5d6eb870 | |||
| bb8069aca2 | |||
| e964bb0553 | |||
| 6ec9007428 | |||
| cf278af0a5 | |||
| 90972d4a4a | |||
| f3b6557cbd | |||
| 42addaa3e1 | |||
| ea04fc996a | |||
| c3f87211f1 | |||
| d56b156436 | |||
| 17d81ecf21 | |||
| e3d681b9bd | |||
| 6d939b98ac | |||
| 8cb7f5f10b | |||
| c8e5ef3e7d | |||
| e70b25c6a7 | |||
| 3e55957a14 | |||
| 1dcf70cfc6 | |||
| 19834e73a0 | |||
| 2bd88a62eb | |||
| 8663a2dd16 | |||
| df4a87b1db | |||
| 828d74e5bf | |||
| 16a9acfcf6 | |||
| 6ba7dd1f1b | |||
| 4240d9befd | |||
| 855f0c34d9 | |||
| b0ceb5e78c | |||
| 93d07196e5 | |||
| 66a68fc947 | |||
| 1cba77a00f | |||
| c3ef4e41c4 | |||
| 5555faf0eb | |||
| 9e43568c66 | |||
| 67cc0da803 | |||
| c91cb8cc9b | |||
| a4f11029f8 | |||
| b54f230116 | |||
| 2195c14263 | |||
| 9c8611ad90 | |||
| ce771a4100 | |||
| 8428c2eab4 | |||
| 0598a5b525 | |||
| d04ec173a8 | |||
| c7d2fddc92 | |||
| 819bcf0e5c | |||
| ab8a203fae | |||
| 3129d48bdb | |||
| b7b2b0d9eb | |||
| 448a84ef0d | |||
| c1864e7b47 | |||
| 0fa221b5f8 | |||
| 9e8d036c5f | |||
| ab5908ac20 | |||
| bd768a6633 | |||
| 250177d220 | |||
| 0b2c6b5810 | |||
| 2fb69c3088 | |||
| 12af8984e4 | |||
| 013989d538 | |||
| 97e40a89b6 | |||
| 5aaed7da75 | |||
| 18f565be3c | |||
| e354d642db | |||
| 01a1f8d7f8 | |||
| 0d6d5d2f86 | |||
| 5a8492e757 | |||
| ea033f7218 | |||
| 4af22bcffb | |||
| b8da839afb | |||
| 3ae553753d | |||
| 0fffeab7b2 | |||
| 7f30e65625 | |||
| a13158c6ae | |||
| 88493f7460 | |||
| d35169d293 | |||
| afd734aba8 | |||
| 8a0b56fb8c | |||
| fdac87d83b | |||
| 132af78865 | |||
| 23107e8e75 | |||
| 7918763e30 | |||
| 1b0dcbf992 | |||
| 3b36e3832d | |||
| 5c9b28a02a | |||
| b3d7c1c704 | |||
| 5d8dbb2e26 | |||
| 46efe3132a | |||
| 9ceebe4d7e | |||
| bc793b32ad | |||
| 853ec0f00c | |||
| 06c0780863 | |||
| f78127e3ce | |||
| 11e47dc6a6 | |||
| 78132f3af1 | |||
| 8a8878584c | |||
| 13cbf9a18f | |||
| 89e353d86b | |||
| 8a86b5b980 | |||
| 37fcc77da9 | |||
| f6b56cb416 | |||
| 2fa2975268 | |||
| 57ae0751cd | |||
| 741df32336 | |||
| 490a2989f9 | |||
| a866bfdb8c | |||
| 2897931043 | |||
| fd47efce84 | |||
| afefed74e6 | |||
| 7a92152d78 | |||
| f770f9aef7 | |||
| 5f4c9a866b | |||
| 198acec34f | |||
| b74748211c | |||
| 5b1133a18e | |||
| 2e1edfe8a0 | |||
| 2cb4ea7c80 | |||
| 43179b1721 | |||
| ac70eed10a | |||
| ccf4386475 | |||
| d67660bcc9 | |||
| b7191b39db | |||
| 09d9ff2da3 | |||
| 3d85e36794 | |||
| 12fb442f77 | |||
| cab2027835 | |||
| 8710c0acb6 | |||
| 58d04dd117 | |||
| c823593c62 | |||
| 80e136c657 | |||
| 0f212a7150 | |||
| 51e02a5cae | |||
| 4869252802 | |||
| 14e312b67a | |||
| 7374cb777b | |||
| 2c44404f6f | |||
| 079e38226c | |||
| 17da5ba67c | |||
| 99d5749fd4 | |||
| 00640cf822 | |||
| 26dd6b81ae | |||
| 43bad4960d | |||
| d3a061329d | |||
| fdbe00dd9d | |||
| 29ff7db02d | |||
| b4c88b2ebc | |||
| 9817c7ba85 | |||
| b13167b974 | |||
| f6f5a47513 | |||
| 80e0194536 | |||
| cf8b175289 | |||
| c75ccdcfaa | |||
| cd59fbfcd4 | |||
| be20ac7f41 | |||
| 6d9b5fc494 | |||
| bc5be37c0e | |||
| c41425208c | |||
| a1050d0e3e | |||
| ed18c1e6b9 | |||
| a8ed49a50b | |||
| 47cd11b088 | |||
| 48785380d9 | |||
| c799636aab | |||
| 980a9d72c2 | |||
| e789ba15f3 | |||
| 28cf2ddb02 | |||
| f89aadc48b | |||
| 18e9640a19 | |||
| 370f0fd962 | |||
| feb615b179 | |||
| 50fe72b312 | |||
| bbd72b141c | |||
| 8d3912060a | |||
| f302e17539 | |||
| f4e6413ab5 | |||
| a4ec6d4265 | |||
| aaf298dc7d | |||
| 6e092b9b53 | |||
| 999886b59d | |||
| 699e62d6d1 | |||
| 86c2bd6b69 | |||
| 8554ffbbf7 | |||
| e07296bf3f | |||
| 1376497623 | |||
| 5207968159 | |||
| 514028b691 | |||
| 80f930827c | |||
| b5b1c43d22 | |||
| aff15c409a | |||
| 4d47c924c8 | |||
| 695f97b99b | |||
| 4b71c09de7 | |||
| f99d017018 | |||
| 826a9a8c18 | |||
| bc145c7a8d | |||
| 19848bf53c | |||
| b6cea50ab9 | |||
| 0c507ccf9c | |||
| a55dc41746 | |||
| a723c9eba3 | |||
| 523b248445 | |||
| 057a225d1d | |||
| b9f4b1c216 | |||
| 9bceee81f6 | |||
| 44e80b6039 | |||
| d8f9a1a4fa | |||
| 8168a22be7 | |||
| 91678887ea | |||
| 658d44b46a | |||
| 01e9b2186d | |||
| db3f287efb | |||
| 76ce435b58 | |||
| 5c9caa6992 | |||
| 3c0b591cb0 | |||
| 91d8c56461 | |||
| da47a54ce0 | |||
| 89ba516fa8 | |||
| 2c113946e8 | |||
| 2b2fc0fb4c | |||
| 571d7654af | |||
| fb0e0ee678 | |||
| 162e6c58e0 | |||
| 2e18d23fa0 | |||
| aaf571feb9 | |||
| 986776b3c8 | |||
| 6010d1dbf6 | |||
| 3e142a03d3 | |||
| 55a947782d | |||
| 3ea829d4e6 | |||
| 0be4b4d966 | |||
| 8c5b2227a3 | |||
| 7ec8040b1f | |||
| 513a61bf5a | |||
| 2ab3901144 | |||
| 68c7e5c5ef | |||
| ada536300b | |||
| 22ce244563 | |||
| e0c03c23e4 | |||
| e8e38b1f07 | |||
| 8b04117bb9 | |||
| 266114fde9 | |||
| 26301d2411 | |||
| 44b3f82831 | |||
| 6ef4de4daa | |||
| b11dd0a9cc | |||
| f5a6104970 | |||
| 96f7223aec | |||
| f7c14ab478 | |||
| bbb6fa03ba | |||
| 550bdcf403 | |||
| fd335ffd71 | |||
| 819d8bbb74 | |||
| df4401a8dc | |||
| 2b154dfa40 | |||
| e2686de193 | |||
| e6ab2a051d | |||
| baa5bdb5e1 | |||
| e485de4037 | |||
| b4c418c112 | |||
| a223f8bc5e | |||
| cd93d66ab5 | |||
| c5f789b317 | |||
| 87c22fec63 | |||
| 6476e4d585 | |||
| afa9a7825f | |||
| 6ad0a47dc9 | |||
| 9899515bfe | |||
| 48a76b665d | |||
| c02a59d523 | |||
| a71ed98bca | |||
| a2ff42062b | |||
| 8fccb791a9 | |||
| d5b764d9c7 | |||
| aaf17d5a63 | |||
| d266e765e8 | |||
| 1b9d5dbf08 | |||
| 474431f453 | |||
| efbd6b8cd9 | |||
| f68999014a | |||
| 51d5d0d70e | |||
| 2edac68daf | |||
| e5e0b03029 | |||
| ec8e1c7df5 | |||
| 4194cd5738 | |||
| 728cb6b68b | |||
| 797f894b03 | |||
| 98d71795f9 | |||
| e31f392588 | |||
| 323edc1a4f | |||
| 262761adab | |||
| f62455ed17 | |||
| bc4de027c3 | |||
| f05fb9c7d0 | |||
| a172824f0b | |||
| 23576eb9fd | |||
| fa969e3650 | |||
| 2e269a36e6 | |||
| d06918c0e3 | |||
| 00981d3471 | |||
| a51ea28ba9 | |||
| 2e2912882c | |||
| 2655770558 | |||
| ea69de3690 | |||
| 6213014605 | |||
| 87850ef65e | |||
| 9ce34488cf | |||
| 2ca2f2502b | |||
| 588727d223 | |||
| 90b6fbe2fa | |||
| aabf54a851 | |||
| 933b38d79b | |||
| 57b2bb437c | |||
| b44f0834f8 | |||
| 08a17456ca | |||
| ba705d8e23 | |||
| 367fd21f0c | |||
| e3d7679200 | |||
| 23c62758b0 | |||
| 270356878d | |||
| 46fe90bc59 | |||
| 706b2ba17e | |||
| 0cfe059547 | |||
| d1c0974c21 | |||
| 6e05f80898 | |||
| d6fb94574a | |||
| 4bb0583e35 | |||
| 5f36226bab | |||
| 410965308e | |||
| f59994ff70 | |||
| 9ce731d15a | |||
| 303327570b | |||
| 3f09c570ed | |||
| 45802c60f0 | |||
| d3d17daa5d | |||
| 942d702992 | |||
| f04e164ad9 | |||
| 79085c02c4 | |||
| 897437bdca | |||
| f68caae819 | |||
| 5cb62a4183 | |||
| bf91aacb4f | |||
| 2ce0214b5d | |||
| 095f0678c0 | |||
| 0da1f7ccee | |||
| d15dd6c1c1 | |||
| f1be9b65ff | |||
| 317a3ced4e | |||
| d9f61ab587 | |||
| 9c4977573c | |||
| aabc7cb351 | |||
| 59741a2268 | |||
| c1b88d355a | |||
| 2f06412593 | |||
| 3faad95512 | |||
| e9fbaf69cf | |||
| 77a5f11551 | |||
| 85579b7769 | |||
| 6b01b54d4c | |||
| d077accda0 | |||
| f1d164e2da | |||
| 1a88bfa1d3 | |||
| a41af83ba1 | |||
| 719ad9da54 | |||
| e5af6b7bbe | |||
| e40cdffc40 | |||
| 8823994482 | |||
| d5cbcb739e | |||
| d90b13cc7a | |||
| 0c4dc2a5c0 | |||
| 86dc78c45d | |||
| a1a5a43a29 | |||
| a797fa26b7 | |||
| bf07742ec9 | |||
| 558bd930f0 | |||
| ec18bc2c77 | |||
| 28b7f16d4e | |||
| d6702712c0 | |||
| 2bd68d5840 | |||
| d5da9d636e | |||
| 3315c3df0f | |||
| a36c677f71 | |||
| 108a7595f7 | |||
| fb12d6a4c3 | |||
| ce769c00cf | |||
| 167e724ad8 | |||
| 5623080475 | |||
| bae4e9c6a8 | |||
| b7e15d3327 | |||
| 7b09042034 | |||
| 39114ba91b | |||
| 531ccddff1 | |||
| 6701457954 | |||
| b265935cf6 | |||
| 8c49404b10 | |||
| 05af8adf01 | |||
| ddbe75b35f | |||
| 26252463db | |||
| 34957f5dee | |||
| b2928ec917 | |||
| cdab063893 | |||
| c7088ffeed | |||
| 8cfe0bfbb0 | |||
| 49777d2531 | |||
| 3db7899ab9 | |||
| e706da5868 | |||
| 69ee1181b8 | |||
| e854162bfc | |||
| 578b35e455 | |||
| ad6f2587f8 | |||
| 8d42f6ea26 | |||
| 288c9653aa | |||
| 1ab0e3c94a | |||
| 95a45e5997 | |||
| add9fab320 | |||
| 869d0b8277 | |||
| c2353afe9a | |||
| 7b0fd2676f | |||
| b658334a65 | |||
| 243cb08e50 | |||
| ced4df451b | |||
| ddd4963863 | |||
| 981a9b7f1a | |||
| c2c9df37f2 | |||
| 8e9342d54c | |||
| d1b9a50c86 | |||
| c32d5a7dba | |||
| f6d44dc1f3 | |||
| eaae715f43 | |||
| a138d407dc | |||
| 973b5b07da | |||
| 1f7035ac4d | |||
| 72a3283d8b | |||
| cee2054ed3 | |||
| 40f08e830f | |||
| 78c4679166 | |||
| 28067a32e2 | |||
| 5242ce858e | |||
| 60f60561b1 | |||
| f8ca646bba | |||
| 1423e73248 | |||
| 06a3ff093f | |||
| 251cd93fe0 | |||
| fa92f01dc8 | |||
| 97c7eaf617 | |||
| 18c660823c | |||
| 116eab0475 | |||
| 9918c5ec7c | |||
| ed2f5c5267 | |||
| 1ae99ebfbf | |||
| f5384d8942 | |||
| fe5dd72e48 | |||
| cf6cfadd04 | |||
| 9e31280dbb | |||
| fcbc340545 | |||
| 1dcfb63c4d | |||
| 2ac64f7629 | |||
| 468393a2c4 | |||
| b4af7a1aa3 | |||
| 8c664eefc4 | |||
| 3695275d9e | |||
| 4ba78799d8 | |||
| 3ad3836cd6 | |||
| 6870579ec9 | |||
| 69669da6d4 | |||
| 13cd097b2b | |||
| 9156eefc1e | |||
| a9cedf3eff | |||
| ee1a3096db | |||
| 2ab8abd7a8 | |||
| 028de989c0 | |||
| 0aeff7f1ca | |||
| edd853cb61 | |||
| 5f70a64b24 | |||
| 0b540c3d1e | |||
| a03b9adecd | |||
| af514a015e | |||
| 2141e9d208 | |||
| 5fea5f37be | |||
| 4225fd6777 | |||
| a7aa9ff522 | |||
| 0110e102fd | |||
| 8b498f7814 | |||
| 7096f8f6eb | |||
| 7420f315cc | |||
| 173d7fcfef | |||
| 898eb29340 | |||
| c29d35983b | |||
| b29db72b8b | |||
| a04b30a6ea | |||
| d8376bb9d3 | |||
| 489abcbd16 | |||
| 422da01f30 | |||
| 868fae7b1a | |||
| af9f8e82fb | |||
| 36377fee78 | |||
| 1ec1ad4068 | |||
| 4b0da30f2c | |||
| c6f6d5eb6a | |||
| 692f4af592 | |||
| f0bdb82fe6 | |||
| 150526b978 | |||
| 78733cc264 | |||
| b6a323e9ca | |||
| f67a62d712 | |||
| 5ba1da1a7b | |||
| 2fe39ff1f1 | |||
| d156ea87f8 | |||
| 4bab093a31 | |||
| 1ef3d107b7 | |||
| 6e15e92cb2 | |||
| 7a8084785f | |||
| b5b9f87e0a | |||
| 26a3a93cdb | |||
| c7b263da63 | |||
| 96448f3cfe | |||
| a0bde5f137 | |||
| 7ba3e67799 | |||
| 9de6a64144 | |||
| 89134e0bd0 | |||
| ef04b09f45 | |||
| b27de0fd6f | |||
| b0d106c51b | |||
| 402f4f2b81 | |||
| 223feceed0 | |||
| d849b1dc80 | |||
| 53759bed16 | |||
| a3458f2f3c | |||
| 74c05f6821 | |||
| 55ead85e3f | |||
| 341c6276e8 | |||
| 0b20c45e1b | |||
| 9f19ae4ff5 | |||
| 49f5bc5674 | |||
| 345af51eb1 | |||
| ee543c7d0e | |||
| 49066c553a | |||
| 43b3d58fd9 | |||
| 96f08c2714 | |||
| ebf6354f25 | |||
| c0f67a27a8 | |||
| 1af418dd25 | |||
| 084afab885 | |||
| fc58b3e867 | |||
| 4a2bf2d605 | |||
| b9ea916237 | |||
| bda2d2da55 | |||
| 80c74f9bbf | |||
| 6fb023b81c | |||
| 179b7b0bad | |||
| 1d11c57262 | |||
| b43260b5d2 | |||
| 2e06306973 | |||
| b4381aac39 | |||
| 28035b6cb8 | |||
| 484b0fa7ac | |||
| 7da7d694bb | |||
| d33cf52e17 | |||
| 59e311d053 | |||
| 47e4b01126 | |||
| dd90a89734 | |||
| 15767dda9f | |||
| 0191fb21e6 | |||
| 91c9ff1886 | |||
| 96a4e8d549 | |||
| 1ac93db43a | |||
| 86854ceb38 | |||
| 1a581c39eb | |||
| 6054f406c4 | |||
| 2613c0b5d8 | |||
| f3147c7fb1 | |||
| 3cdfa70241 | |||
| 2b09166ea8 | |||
| ba7e5180c4 | |||
| 8a23cc4a9b | |||
| 46f341f973 | |||
| 85e0fe4e7e | |||
| 4419813cb4 | |||
| 7113174716 | |||
| a803e657c6 | |||
| 2f00f5d74d | |||
| 7bfc497e41 | |||
| 9bf4e69a01 | |||
| 87d2aac1db | |||
| e29c1e6a6d | |||
| a1e23d3811 | |||
| c804141e28 | |||
| 3581489a29 | |||
| 2c07c78f8a | |||
| 7b021798a1 | |||
| ec22baea21 | |||
| e788991b16 | |||
| f573068619 | |||
| bca4e78824 | |||
| 65d2554cfc | |||
| 9b991073ef | |||
| d2386ac13f | |||
| bc7443aac1 | |||
| b821b939ed | |||
| d0494f6705 | |||
| 2b42029b51 | |||
| 2393221a5a | |||
| aff13a0daf | |||
| bf2b54a802 | |||
| fa2130940f | |||
| 7e82a8d038 | |||
| 67407fbcca | |||
| 5536e3a846 | |||
| 68fd9a4a49 | |||
| de9bc26938 | |||
| 343fce73e9 | |||
| 310bbe222b | |||
| 0ad5b11ce8 | |||
| 0789346dfa | |||
| 7db002baba | |||
| d1ab4463c0 | |||
| a5e1ec47ea | |||
| 4a67319e3f | |||
| 0311e6fd33 | |||
| 11fb8fb7b9 | |||
| bc46c0420b | |||
| 25c5794edf | |||
| 4e2757e31a | |||
| ae89970be2 | |||
| 78fae9425c | |||
| d195493b18 | |||
| 21ec3499ee | |||
| af266a05a3 | |||
| 494d18593f | |||
| fe3fbdf1f0 | |||
| 4c935f6a89 | |||
| 6774c267f5 | |||
| 60d889ebff | |||
| f80ad87b2f | |||
| dff45ead7d | |||
| 1f5d4fcc11 | |||
| a52f5293dc | |||
| 1f6c066983 | |||
| 62bc69e1c4 | |||
| 70107da6df | |||
| c805a5b88a | |||
| 8332b9d91e | |||
| d8a1f6de8f | |||
| 60c6cdbfb7 | |||
| f7ae1db66b | |||
| 1560b8e873 | |||
| 4b8c7ab55f | |||
| c52be23d60 | |||
| ee204cd94e | |||
| c8702312f3 | |||
| 003d2e43d5 | |||
| c80680c235 | |||
| b5393cc131 | |||
| 3dee9f29d9 | |||
| 7c064f56e6 | |||
| 235a8da273 | |||
| 9a3b68c0f9 | |||
| 88fc2e5f35 | |||
| 57f7faaaf5 | |||
| 4d295c8f29 | |||
| 8ee26dc3ef | |||
| 7d8c1f2592 | |||
| dcb95a613a | |||
| f4e58ea353 | |||
| 1d736b0202 | |||
| 84d6e9a2e6 | |||
| 9fd2be9a75 | |||
| 1fa5e691e1 | |||
| 6569ac073f | |||
| 174ad27852 | |||
| 5126c0ecf1 | |||
| 6f23e1461d | |||
| e3ddc3fdf8 | |||
| 1c6baeac33 | |||
| 337c30bbae | |||
| c50356ad39 | |||
| 187a9dd79b | |||
| b1635517b6 | |||
| 67670d8a09 | |||
| e43398f85d | |||
| 5c084f95c8 | |||
| 6c678804ad | |||
| 20e6b40599 | |||
| c7d3cd519c | |||
| 60ae4324e2 | |||
| b0db057979 | |||
| 1350291762 | |||
| 4f72382871 | |||
| c91012b739 | |||
| 5b6a3004b8 | |||
| 095a69f879 | |||
| 79753b0c51 | |||
| b4de0e6860 | |||
| 0edb56bf7e | |||
| 9d7b6bc801 | |||
| e1b5f16ff7 | |||
| 5b40624170 | |||
| 0ff107562c | |||
| 9193073a71 | |||
| a31e0b94e0 | |||
| b735da74fd | |||
| 963158cd31 | |||
| e124b79e3b | |||
| 67de40c753 | |||
| 005d131a66 | |||
| da6d9d518e | |||
| 647cc160b1 | |||
| e12218c46e | |||
| a3a28a6d17 | |||
| f52b2605b2 | |||
| 6498ca44be | |||
| fc703a95ea | |||
| 2a9c432b49 | |||
| 34730e41fa | |||
| 1411507d3e | |||
| 969e657349 | |||
| ffb0479b5f | |||
| 8bcbc1f2a2 | |||
| 8c1e25430a | |||
| fe73072dee | |||
| 56809cf0dd | |||
| a8482d89e4 | |||
| 231a4971f7 | |||
| dccb24cbcb | |||
| 0ed04fac05 | |||
| e0fef1db0e | |||
| f56347e6c8 | |||
| e383d2c544 | |||
| fe3b371650 | |||
| ce2dc8a936 | |||
| 403747f23a | |||
| cf2cdb47f2 | |||
| 496b1c2227 | |||
| d36d9fa8a4 | |||
| 3afe490b36 | |||
| d4a0787638 | |||
| d5f62033b0 | |||
| e0035f660a | |||
| bca641b07f | |||
| 98b5443c54 | |||
| bc799e582b | |||
| ed76907a66 | |||
| 8fe45fedf0 | |||
| 528403fbd0 | |||
| 04259cf7c3 | |||
| 0d141184cb | |||
| d07e4f70fe | |||
| 8831bbbe97 | |||
| a41d0ece6b | |||
| 6d2fc754eb | |||
| 2ceaeb7119 | |||
| f210d7af3a | |||
| bb75018d2d | |||
| 7b2da4ee07 | |||
| 0ef79df8d2 | |||
| 966f12131f | |||
| 5f1ec93d6c | |||
| 89daac906c | |||
| db759b3cd4 | |||
| 2c07fed019 | |||
| 6bd941a802 | |||
| 28e78667ef | |||
| 5818a8280e | |||
| db5450a699 | |||
| c46853629f | |||
| 4af88732e9 | |||
| 7dcb7b7a27 | |||
| 0e94ca9904 | |||
| c993fc6ff2 | |||
| 9301416c96 | |||
| ec972550c0 | |||
| 849ed4486e | |||
| b75a0f99cb | |||
| bb544f14be | |||
| 163a1a39b9 | |||
| 0dff166956 | |||
| d5237da43c | |||
| 95a538c179 | |||
| ebdabc2eb0 | |||
| 1be15e3ee8 | |||
| 153a1fbe47 | |||
| 8774cb6a21 | |||
| 3da406fdb5 | |||
| 37a70f2912 | |||
| 987ae50834 | |||
| 3779dbe93b | |||
| f93b567fde | |||
| 57f7508efc | |||
| 4e6354a6a3 | |||
| 8dd13ecc2d | |||
| b7c5209b6e | |||
| 668d3a74eb | |||
| 535ee55215 | |||
| b4cb1e4674 | |||
| 8cec3e287d | |||
| 28818c7fc8 | |||
| b0445fd07b | |||
| 14e5b97668 | |||
| fcf5e9f251 | |||
| 5ef5d20acc | |||
| b0d841289b | |||
| 2aad4cac1d | |||
| 97eef3c510 | |||
| a8c02558aa | |||
| a65a634e5d | |||
| 56796d03d4 | |||
| 206e2ed214 | |||
| 8168484ccc | |||
| 0f60cabb51 | |||
| 31e5955cd3 | |||
| 124aa1a2ef | |||
| 8417a86844 | |||
| 99dfcfc49d | |||
| 24302f747b | |||
| 69f5be17b5 | |||
| 149c80505a | |||
| d86cc54926 | |||
| 909f198cea | |||
| 21a29b7fbd | |||
| 2f282063d0 | |||
| 82e9497611 | |||
| fb011af9db | |||
| 0347ff8cb4 | |||
| 27c1f8245b | |||
| 67c2e6fb15 | |||
| 8ff3819153 | |||
| 5a6bb68b84 | |||
| d3c4740caf | |||
| 91e22aad44 | |||
| c751502367 | |||
| 16d2e67f15 | |||
| 6c99c7cb90 | |||
| 5054852d0e | |||
| d558290e2c | |||
| b4a92179b1 | |||
| 397b9cb346 | |||
| 50bf0ee648 | |||
| b4859a7fce | |||
| 95d56ab287 | |||
| 6ad8ac6a74 | |||
| 86f958cb30 | |||
| 1411e6704a | |||
| 0385cac49e | |||
| 2544b394eb | |||
| 47f7ba45c9 | |||
| b7e7b3144b | |||
| 3db67fc6e3 | |||
| 3bd004c2ec | |||
| 6b3c4f19e2 | |||
| 708d140f15 | |||
| 2472bbfa7d | |||
| 7e501dca39 | |||
| f1e26a5049 | |||
| 60a0bb7d79 | |||
| cbbf2f160a | |||
| 0ef9d5f060 | |||
| 6dd2696e88 | |||
| de24c3d79e | |||
| ef9ec3a9bb | |||
| 6dd6ea5009 | |||
| 1c6fb483a6 | |||
| 9ea2d0ef16 | |||
| 1378890ca6 | |||
| c72b27eefb | |||
| 8d9c08c2fe | |||
| 2ac1dbccf6 | |||
| 38a49e0b24 | |||
| 810ff4d20a | |||
| b62ab61b10 | |||
| 68db2f480b | |||
| 590ae99788 | |||
| 8064a9f044 | |||
| 26793e6aa3 | |||
| 5cdb9d744d | |||
| 5446eaf6de | |||
| efc1648751 | |||
| 921040d215 | |||
| e98c3c100d | |||
| b8be36655f | |||
| 07fea30e30 | |||
| a6b1102339 | |||
| 9c47d6f210 | |||
| fba5bc0206 | |||
| 77a3451ac2 | |||
| 940183033d | |||
| 909a4d462d | |||
| 2094dad227 | |||
| 14bd60a4a6 | |||
| 23bcda44c4 | |||
| 692dc36dc7 | |||
| b6f11460bf | |||
| 2ff485ba1c | |||
| c490b74715 | |||
| 40125a28c0 | |||
| 4ef55658e8 | |||
| 8859c775bd | |||
| e545b1a485 | |||
| 8d243edc30 | |||
| 32bd56a342 | |||
| a3b3176ee2 | |||
| 25bcdf0c6e | |||
| 2576734201 | |||
| 839e2a6abe | |||
| 32ca365035 | |||
| f8f806dcbf | |||
| cbd63b1513 | |||
| 225780ba87 | |||
| 018a5f21d2 | |||
| 0cdc5e548a | |||
| 06f07ee2ca | |||
| b54c67d088 | |||
| e0781598f2 | |||
| 5d46a69d6b | |||
| ef1c05988c | |||
| a1a7d960b4 | |||
| a42a1fd675 | |||
| 324162e009 | |||
| 58bd05be63 | |||
| b5be3d1685 | |||
| 94a4bfe599 | |||
| 5cfcccdc05 | |||
| b639985cf1 | |||
| e76252715c | |||
| 07b5cc7e36 | |||
| 77cdb9857e | |||
| 07c4436855 | |||
| 1681d3f465 | |||
| 53d17e7676 | |||
| 8ec35de7f3 | |||
| b28c423f30 | |||
| 6001a74dbf | |||
| 245a2dd4f3 | |||
| d2bceef789 | |||
| a9f8bf48db | |||
| 609e2fcb04 | |||
| 5dc6a945d5 | |||
| 2da7a0c306 | |||
| cbe2c87055 | |||
| c9715d695f | |||
| f980f7a83e | |||
| 928636ac50 | |||
| 01a6760b12 | |||
| cc4453f68c | |||
| 8a81ba5146 | |||
| 0b1dfeb516 | |||
| d8d57087be | |||
| 82e8676253 | |||
| e8e07e573c | |||
| ca37815d08 | |||
| 16f165f1e2 | |||
| 02fc0e9aca | |||
| b9fe796478 | |||
| ef4ae31119 | |||
| 9e3b127146 | |||
| a2cfd6fc34 | |||
| 2a0f12264d | |||
| d156cee889 | |||
| 2910327a63 | |||
| 7b6d9dbf44 | |||
| 5fb985e5a8 | |||
| 6dd6b6b168 | |||
| 847e877510 | |||
| 5d0c665e43 | |||
| 84c5b3c939 | |||
| d10a7f056e | |||
| 2a0200a035 | |||
| 56e00191ef | |||
| 612f42d612 | |||
| 8f883b6430 | |||
| 13f8ab0e1d | |||
| 254dfa071d | |||
| 8145810b56 | |||
| 5eb8d1bb08 | |||
| 0d44d1e242 | |||
| 7a4ee94869 | |||
| d0dc4d0604 | |||
| 1548008cac | |||
| 6012178256 | |||
| 359e9418ed | |||
| 6e0935f932 | |||
| ba0ba2333d | |||
| f00771c675 | |||
| 53d7f27a36 | |||
| 63d5042c2a | |||
| 1fd1ce698b | |||
| 3a182afb45 | |||
| f5cf72bd03 | |||
| c472b2a0a6 | |||
| 7b19ab2bcf | |||
| a8ccad1cf2 | |||
| 19f46b9bd3 | |||
| 4311800497 | |||
| 22e7b41f60 | |||
| bddf82aced | |||
| ed963deae8 | |||
| 161ee8583c | |||
| 3db2c671b8 | |||
| d18da357bf | |||
| e66beea57e | |||
| f7a6c8c521 | |||
| c7e6c970b5 | |||
| 52165cd387 | |||
| ff34c1aa97 | |||
| 8fed4a4956 | |||
| 32f2dded9e | |||
| 73f2e0951c | |||
| 48061eb9d7 | |||
| 3f118a0bc0 | |||
| 59162899a0 | |||
| 1135bacfbe | |||
| 6645993d8e | |||
| 2b552f5ac8 | |||
| 4b06e8e6ea | |||
| 9872977fe1 | |||
| f61cf7a4d0 | |||
| 778d321bed | |||
| 0ed399dd4b | |||
| 6444e6258f | |||
| 7bcca1f939 | |||
| e41d85cbc7 | |||
| e2800c27fe | |||
| 77c09b68dc | |||
| 58f4a518df | |||
| 20d606ac94 | |||
| c50fb58d1e | |||
| bad0123ea8 | |||
| eeb94a10b1 | |||
| 2d2a4062e8 | |||
| e3dda89f0f | |||
| eebd5d5135 | |||
| c64fbde87d | |||
| b00dfd1129 | |||
| 83b7d43332 | |||
| 3a8b720827 | |||
| d61eec51f6 | |||
| b9458fd380 | |||
| 5614adbf27 | |||
| f87c53058a | |||
| d379c4156d | |||
| 6d6aa4cdb8 | |||
| bf95c58668 | |||
| ba8771c29b | |||
| ed50d5b8b9 | |||
| 725f5e3095 | |||
| 416d9331be | |||
| c289ace76f | |||
| 3a119100fe | |||
| 13c1c827cf | |||
| 04482a2841 | |||
| ec8a820233 | |||
| 7d3109cc72 | |||
| b196354cfb | |||
| 22460e86d8 | |||
| 5b49a288c5 | |||
| 5bb72e6e04 | |||
| bfeb749104 | |||
| a8bff7eac7 | |||
| d939fb1aab | |||
| 22e985bf2c | |||
| 1f619b542c | |||
| 0c6ec263ba | |||
| f41c464587 | |||
| c2c669b852 | |||
| fef03b66ac | |||
| d8a288b600 | |||
| 15e0ff7e59 | |||
| 6081e82007 | |||
| d44ad30d1a | |||
| 40d96b09f6 | |||
| 5006dc996e | |||
| bf43cf2eb1 | |||
| d43a996a2e | |||
| 94e104d8de | |||
| 23654c1875 | |||
| eccc8dfcd5 | |||
| 179527de4e | |||
| 8c5e4b037d | |||
| 7cd3412b40 | |||
| bba0f436fb | |||
| 4625b59953 | |||
| d9fb55d22b | |||
| 78dd187191 | |||
| 835108517f | |||
| b4286288b6 | |||
| 96d1c810ea | |||
| 1cb9e5fb18 | |||
| f742c8e861 | |||
| 67df734ca3 | |||
| fa67cc2758 | |||
| 9d2991a3c6 | |||
| 40c424f579 | |||
| 5c34587741 | |||
| 6706f6fc47 | |||
| 19dbe2450c | |||
| 597e385ada | |||
| b861982b78 | |||
| cd0033171b | |||
| ef3d0dad80 | |||
| 0c6b9429e7 | |||
| 09e783d95e | |||
| 99f434b313 | |||
| 4fd8728266 | |||
| f3ffc5f16b | |||
| 25afb1aa8b | |||
| 486634a841 | |||
| 70d0506837 | |||
| 9091ea2cf0 | |||
| a7dd067d1f | |||
| 3691d9c242 | |||
| 3311f4d597 | |||
| d8cc130e4f | |||
| deb7fe7856 | |||
| e0e35eb72c | |||
| 645f55b9e0 | |||
| b353646747 | |||
| 7b27657f5c | |||
| 4fb6e56fe6 | |||
| 8486022a7b | |||
| 6d714d9d72 | |||
| 2fa621c7ae | |||
| 8e3f616a25 | |||
| c7811cff67 | |||
| fee157cef0 | |||
| f84499bf63 | |||
| 2835a63ee7 | |||
| 66ae72f428 | |||
| b6e9e0bede | |||
| 85972fbc81 | |||
| f05e508fb2 | |||
| 6a36e6f48c | |||
| 5f751576e7 | |||
| d917bf20b0 | |||
| 7739126eeb | |||
| 606ba63fec | |||
| fb27569311 | |||
| dd2a6498c0 | |||
| c4fd022c70 | |||
| d58042daa1 | |||
| b8a406ad29 | |||
| 4fe482276a | |||
| 50f3049257 | |||
| 811927597b | |||
| 07ace23a1e | |||
| 6b2d582673 | |||
| 803acce0a4 | |||
| a063d932f5 | |||
| 351782f1d2 | |||
| 39175d2637 | |||
| d4ddbf954b | |||
| 07a8f8ce51 | |||
| c35401f557 | |||
| 88fc83b837 | |||
| 2043cc296f | |||
| 40d27217fe | |||
| 33901363ab | |||
| 07608977bf | |||
| 3b5209e98b | |||
| d3f67b59b2 | |||
| 2fc32ec3e9 | |||
| cbb8551943 | |||
| 0f2ef64553 | |||
| ec17c0f71b | |||
| 3ab6850a07 | |||
| 361166adc7 | |||
| a4620e8a84 | |||
| 6e9108e238 | |||
| 39cd66be54 | |||
| 076969e1c2 | |||
| 37df3a6fb2 | |||
| 42a35f0350 | |||
| 6ad93e7b57 | |||
| e4cb6425b2 | |||
| 019448eda7 | |||
| 0b586f400e | |||
| 86027b7bce | |||
| 254d8539fe | |||
| 6cdea40bf2 | |||
| 12bfb9485d | |||
| 19b5bdb637 | |||
| 02ff16bc87 | |||
| 055686b4c4 | |||
| a885a836b9 | |||
| fb0853554b | |||
| cdc0f609fa | |||
| 0fdfcaa53f | |||
| c5208c255d | |||
| 127d2764f0 | |||
| b39e0a30c1 | |||
| f2ef4970c6 | |||
| 1ed480e374 | |||
| 6ee774a037 | |||
| d941c293dc | |||
| fdfbcd7587 | |||
| b9ea41c283 | |||
| 4fe0c92eb7 | |||
| e17e5032db | |||
| 722fdccf65 | |||
| 3da35f564b | |||
| f23fdb8818 | |||
| 54c5912ee1 | |||
| 6e7bbdbea3 | |||
| 83cfbce743 | |||
| 85089c5f5c | |||
| 4954838946 | |||
| 88d9592084 | |||
| e16e4669e4 | |||
| 8e7a2aaadd | |||
| 1cf8894932 | |||
| 48ed46c8b9 | |||
| bbd071ffb6 | |||
| a7f98e6a89 | |||
| cc55b080db | |||
| 42f796dd6f | |||
| 755d52732c | |||
| 8acdf7be36 | |||
| f000099d54 | |||
| 39d73aab3a | |||
| f426cbe7d7 | |||
| 284fb1dfaa | |||
| 52f16bf2ef | |||
| 8f68caf1f2 | |||
| ffcb1f8410 | |||
| 4b9bfd40d7 | |||
| 85e540fa4f | |||
| 1462ccf511 | |||
| 15bf119ec5 | |||
| c71b3340b2 | |||
| 4dd81b9227 | |||
| 33318626a1 | |||
| 2213204419 | |||
| 3b69b1ba8e | |||
| 079aa96a2c | |||
| d68eeb78ae | |||
| 255c48b9c0 | |||
| b35c2a3285 | |||
| 16b3d09c96 | |||
| 02b8040f35 | |||
| 034d13f40b | |||
| 7daf70aa03 | |||
| 940063160f | |||
| 1ba3b320fc | |||
| e00495d300 | |||
| 21495224a3 | |||
| b249a8c91a | |||
| 48eee2472b | |||
| 2bb4b618d6 | |||
| 2874fe4dd9 | |||
| 6d1186a3aa | |||
| 133cb0872b | |||
| b8571b3f79 | |||
| 41df70ea82 | |||
| 03a7648ecc | |||
| 04914eac93 | |||
| d4f84602f5 | |||
| 7f66d8fbf1 | |||
| 265d2dcaec | |||
| 7bd3b05c51 | |||
| 1a90883b61 | |||
| 92146e21d5 | |||
| da5a4f6b8b | |||
| fab07a0d84 | |||
| 3a1fa2c234 | |||
| acf767dfcb | |||
| a4bfa01c81 | |||
| cfd0272ddd | |||
| 751961f2a2 | |||
| 1441f94552 | |||
| 376cb4788e | |||
| 3af68f565d | |||
| e2a6f51eae | |||
| ec8674e810 | |||
| b47c545bbc | |||
| 8a6d6788ec | |||
| 02c8e73528 | |||
| 0a89b24998 | |||
| 756c2596fb | |||
| 5e84822638 | |||
| 169497fc42 | |||
| 1461eb1ec7 | |||
| d2b5487e5d | |||
| db244a3768 | |||
| 8456a03b62 | |||
| 4b387b4ba0 | |||
| 4dbf022ea5 | |||
| beede29c10 | |||
| a952726383 | |||
| a8d32c34de | |||
| f8b5298b0f | |||
| f3e9f36208 | |||
| 32fc449fc6 | |||
| 5c10cb56bd | |||
| b30229defd | |||
| 5a68c6e97e | |||
| 148cb30955 | |||
| a63bf260d4 | |||
| 0141e79a4a | |||
| 76e20387d7 | |||
| 095b036aef | |||
| 95c1a9e2b8 | |||
| 5e4490a813 | |||
| 24d0270ffd | |||
| 673bfb2ed3 | |||
| 7df7bed21e | |||
| 61ce74caec | |||
| 9c6035ceca | |||
| aa209f0215 | |||
| d9a146d9a4 | |||
| 98115a8ba5 | |||
| 27484de120 | |||
| 805feeff12 | |||
| 0ca281e1a3 | |||
| 820f2a0195 | |||
| 316caf37b8 | |||
| 30e17058c2 | |||
| 511b2d8bab | |||
| d692baba4c | |||
| 2bf9c89104 | |||
| 3d2d8db3b1 | |||
| fd343d6ac1 | |||
| f11800d3a4 | |||
| 12f3bf79d2 | |||
| 6c0445fb7a | |||
| 64752cdf72 | |||
| 940a0c9356 | |||
| ae289d63dc | |||
| b02ef14366 | |||
| dfd02e84e1 | |||
| ee4b3b1674 | |||
| ef3df90ab9 | |||
| eca7d4ab7f | |||
| 3f8e796124 | |||
| f53920a042 | |||
| 497bfc4f1c | |||
| 2ad300e6d1 | |||
| 2044e99950 | |||
| c6dd59c8a0 | |||
| e975c9a50e | |||
| 9d7aea8caa | |||
| 3447c1e5d2 | |||
| 3a40d4a174 | |||
| d38a0be75d | |||
| 23082b4429 | |||
| 3b549286c9 | |||
| 1317bdc740 | |||
| 39eb3aef00 | |||
| b7a47d88f3 | |||
| 74ee8b0932 | |||
| bf421de498 | |||
| c6f0389eb3 | |||
| a680cd759d | |||
| 2156de2e40 | |||
| 7cf30104c6 | |||
| 4029051f35 | |||
| 1ab1de4132 | |||
| c1fdda6e7d | |||
| d02c6ccf36 | |||
| 80c1e4b085 | |||
| 471f99a08d | |||
| 46c075ebc3 | |||
| f1bf570f44 | |||
| 584ca1bd2f | |||
| 959bdbf6fb | |||
| 0eae99c0b0 | |||
| 34952c085b | |||
| 62a551011e | |||
| b0e7532bd0 | |||
| f001fe5c8e | |||
| cccf7984cc | |||
| d3bf8a4730 | |||
| b617b95639 | |||
| 8e2db6efe3 | |||
| 669e45cbd9 | |||
| 9506228dfd | |||
| 47fdc4fe07 | |||
| 208403664c | |||
| 69402bb9c8 | |||
| d62ff33069 | |||
| 2aede98517 | |||
| d97c6502bf | |||
| d130690bab | |||
| e558b9a299 | |||
| 8255d73950 | |||
| b335613165 | |||
| 6d39031750 | |||
| f39f584332 | |||
| 343950f57a | |||
| 001670f243 | |||
| 469c2e41df | |||
| 5aa198f5e9 | |||
| 814bc4b69c | |||
| 788b210f7d | |||
| 01d59c1382 | |||
| fc174e2be8 | |||
| 6d26c5c3c1 | |||
| 24088a5618 | |||
| 1094dcca7f | |||
| 8cb6eac727 | |||
| 2ca8ed5419 | |||
| b3c7283b14 | |||
| a2ba7f2fd7 | |||
| 11b0b2196f | |||
| 4008068abe | |||
| e2f51e0fb1 | |||
| 50761d27c6 | |||
| 8c4f5abee3 | |||
| d54eb7ef8a | |||
| 5babe59e73 | |||
| 1992392b43 | |||
| 2ae6c007e5 | |||
| 920d3ba436 | |||
| 1a0599c1ec | |||
| ba31f74a4c | |||
| e657af21f9 | |||
| 24992daacb | |||
| 657b6d8a5a | |||
| 29560ad6a4 | |||
| f892903b88 | |||
| 94dcda3473 | |||
| cdde74e5c6 | |||
| 9361fb8634 | |||
| 698143ca54 | |||
| 879957e233 | |||
| 47337426fe | |||
| 9f98486a89 | |||
| 991384626f | |||
| 7872646e10 | |||
| 255989d21e | |||
| 8083579054 | |||
| 2af736529c | |||
| 1a84ff25b8 | |||
| 08aa7571c0 | |||
| 7c5fb6a38b | |||
| 0a5b65183c | |||
| f9d6119aae | |||
| 3df6f48ac8 | |||
| 18009b425b | |||
| 7a54da9a51 | |||
| 36e85a8262 | |||
| e01628432e | |||
| a395593e7d | |||
| e51046c793 | |||
| ff5811e480 | |||
| 533d65aae5 | |||
| c9875f4b74 | |||
| 3c1990a03e | |||
| e459ed9ca4 | |||
| 6c45a82d89 | |||
| cc74672c12 | |||
| c7de73c522 | |||
| c22f52d0e4 | |||
| 95d2f754f9 | |||
| e087a796d6 | |||
| 30462b0a57 | |||
| 61845e5552 | |||
| 9c384b6d6a | |||
| f2b2437f48 | |||
| 5bd4b13fae | |||
| bf84e2c215 | |||
| b815ab1793 | |||
| e9ee020190 | |||
| cc3597818a | |||
| b6eb3fb142 | |||
| e186e1026a | |||
| 71f7563d07 | |||
| a36c0c95c7 | |||
| e62cd3b1e0 | |||
| cc4a5b6600 | |||
| f9f20d409c | |||
| 1b58c2d1ff | |||
| 7720e6166e | |||
| b3b7bac7d4 | |||
| 1f349a51a7 | |||
| 96c0f84be2 | |||
| 42b51fe0ae | |||
| 702b43ecdf | |||
| 81a07b20b3 | |||
| 63655d6030 | |||
| 871e50a21f | |||
| 51b23e66f5 | |||
| da4b81692e | |||
| 9917683282 | |||
| 156739c2d8 | |||
| 3bb696ecb8 | |||
| a3e6800d80 | |||
| fc087d56c3 | |||
| 7979e28485 | |||
| 76a76381c7 | |||
| bcb81f0722 | |||
| 7dd1a9ae8f | |||
| 5ea6c80e68 | |||
| e64e839814 | |||
| bc4f866dd7 | |||
| 04e72c1c21 | |||
| 683dd5185d | |||
| 7a119b9176 | |||
| 8200c3980e | |||
| 9544918a85 | |||
| 04bfc405ef | |||
| 087c05a401 | |||
| a4f9ddda86 | |||
| 552c34f0d9 | |||
| 45e656ca50 | |||
| 02f7a24b41 | |||
| bba32d9e5d | |||
| c1e731c72c | |||
| d819f6cb02 | |||
| 6438f30f13 | |||
| a61a4e2449 | |||
| 8db5cb8f93 | |||
| 5be8e83e62 | |||
| be970d8055 | |||
| c1de667a47 | |||
| 8ac07bcf3b | |||
| c98587c706 | |||
| 130d9885e3 | |||
| e45ac5c549 | |||
| f429f8afbc | |||
| 9309aee360 | |||
| 9f9e6cc77b | |||
| 30d7eec813 | |||
| 7ec79e0186 | |||
| 585a468d48 | |||
| dc3e573698 | |||
| 853251219f | |||
| 57f0f99bb0 | |||
| d804ba9a1d | |||
| 881efcc658 | |||
| 1901e4b4e7 | |||
| 98655351e3 | |||
| 987448a2f7 | |||
| 05e5d8752a | |||
| 6d953b2078 | |||
| 73e60b6f8e | |||
| 3e0374a9b2 | |||
| e85eb92afa | |||
| 1a1a9a79f4 | |||
| 240d96920b | |||
| f9faab0785 | |||
| 718907c141 | |||
| 4ddef2a01c | |||
| 4e167718cb | |||
| d9fe908a08 | |||
| 0f6cb4feb9 | |||
| d07c54e98b | |||
| 26ff88d191 | |||
| 1b705f2c9b | |||
| a52e824457 | |||
| bb216fbc07 | |||
| e42c0922a3 | |||
| 5727abbc8e | |||
| cd5e85db3c | |||
| 7384be48bc | |||
| 2799dcebe2 | |||
| c8856e208c | |||
| 9d4842b68f | |||
| 06d3fcd7b6 | |||
| 2d5eb7b911 | |||
| eab0bb9c40 | |||
| 9a0e4a7977 | |||
| 9c95805f54 | |||
| 8a2952fbec | |||
| d265a4cee5 | |||
| ec8225dc89 | |||
| 07cda160d4 | |||
| efbbfb49c9 | |||
| 3a36f525b2 | |||
| 393c974790 | |||
| 66fe2b1b49 | |||
| cc497503b2 | |||
| 73e871d434 | |||
| 9d572bb9a2 | |||
| f24e7ebd11 | |||
| 9c0c2e7d06 | |||
| c8c96af6f6 | |||
| 9229116a5e | |||
| 56fef6b920 | |||
| 019b235c67 | |||
| e7a6aac7c2 | |||
| a81f4e49f0 | |||
| 8224bc9dab | |||
| 95e12d9b9d | |||
| 63e23c5a59 | |||
| 03ff3b4981 | |||
| a7e774d8a1 | |||
| 8016214dd6 | |||
| 337d274ca9 | |||
| 1d3ebe93de | |||
| feceb516a6 | |||
| 3e55d16ed5 | |||
| b6484ba202 | |||
| 48aeaaf0ae | |||
| d122a9a1e6 | |||
| 6181afb055 | |||
| 3157ea0829 | |||
| 3d40866e5e | |||
| df11db9cfd | |||
| bba63a3883 | |||
| ed9c56d679 | |||
| 4bc0c98359 | |||
| a79ead02d3 | |||
| 985f6c2109 | |||
| cc750142a9 | |||
| eff679ea52 | |||
| ba8f63ccc8 | |||
| 9da50835e3 | |||
| 07f1527fe1 | |||
| 139e7e6e87 | |||
| 0e52fb3322 | |||
| 87b429b858 | |||
| b2471035cf | |||
| 1c188df340 | |||
| 5e61bb0a2c | |||
| 4f99e53915 | |||
| 2e1ae1ae0c | |||
| 95a289d396 | |||
| 78218f453a | |||
| a51fc77589 | |||
| 1cd50293da | |||
| 975049c3ca | |||
| 16ba2272bd | |||
| 0964da83cb | |||
| 3eb15a656f | |||
| 1ba973f92c | |||
| 9faabf4b01 | |||
| ce0dd298e5 | |||
| 5a1b60f667 | |||
| f5bf9f961c | |||
| a4294840aa | |||
| ad139cc73e | |||
| f5211e836c | |||
| c2f6ed03bb | |||
| 0acda81aab | |||
| 1827e185dc | |||
| b459e4638e | |||
| 7be6d9d508 | |||
| 3255d33ae2 | |||
| 680b49117b | |||
| be12ebfd64 | |||
| 2c059454a5 | |||
| 1b4997c7a0 | |||
| d278795725 | |||
| 3b35f4ef1d | |||
| a8ce2ad000 | |||
| f0e4aab834 | |||
| d22baf7484 | |||
| e1d10779ce | |||
| 235e5076af | |||
| 3f03c1ca7f | |||
| 7cbd618a8f | |||
| a7ad32a27c | |||
| c361c76ab2 | |||
| 0e67c84a8d | |||
| 1c441824ba | |||
| 7fdc4a4d4b | |||
| ded15d5cb2 | |||
| dffcaf6633 | |||
| 2505bab729 | |||
| cb22161622 | |||
| 406532c52f | |||
| 08973962c6 | |||
| 6a7f1c1ea0 | |||
| b43b7fa4fd | |||
| d1f02d97f8 | |||
| 735d50defc | |||
| 03e2cf0129 | |||
| 27b20c8d6a | |||
| 9d11a6c872 | |||
| fa60f249de | |||
| e49578d167 | |||
| 5a27dc4527 | |||
| 6c3d8df441 | |||
| 0e4a1b73da | |||
| f1d2ddd4b7 | |||
| d0131694c5 | |||
| 6a1ff522d7 | |||
| 558b299682 | |||
| 6313d04ab7 | |||
| 0124d92f82 | |||
| dc16515ef1 | |||
| c599dd572d | |||
| 137c7ddc65 | |||
| ec4a2511e7 | |||
| c1b7586d97 | |||
| fc5a6bc82b | |||
| 5deb21b374 | |||
| 74879c1175 | |||
| ee35546924 | |||
| 07c04e1cf7 | |||
| 4a2d86d6cb | |||
| b0f0890b30 | |||
| b9d1280e08 | |||
| f71bf100c6 | |||
| 52e30fc785 | |||
| b85fa53502 | |||
| 487124f9c9 | |||
| 25d4fa40cc | |||
| 58e4707af0 | |||
| 15d92a59aa | |||
| c3b6ed7f4e | |||
| 82173975dd | |||
| 30fa7af4b4 | |||
| cbc7c0d1ed | |||
| 18e99f5264 | |||
| 09075ec5d0 | |||
| c4093a8cde | |||
| 5850d0bf1c | |||
| e20187f4c8 | |||
| a90d1687b7 | |||
| cd8b9b9528 | |||
| 6dde3f0176 | |||
| 6ae347a8e0 | |||
| e70c178599 | |||
| b5e6e158e0 | |||
| 2d0eb91168 | |||
| 108df332e0 | |||
| 4e182a28c5 | |||
| c0c0440050 | |||
| a23a85a436 | |||
| 7ce9561633 | |||
| b744c9fdb6 | |||
| 76a6f6acc9 | |||
| c143a9ee34 | |||
| b8003bee7c | |||
| 1706dd4a50 | |||
| 82820e4423 | |||
| 9d6db1c502 | |||
| 8c96ac25d8 | |||
| b226a68326 | |||
| 84b35edd55 | |||
| fe057ad723 | |||
| ea0a955eff | |||
| 090752ee4c | |||
| 18553d1030 | |||
| 0d3f761a62 | |||
| 14b121b2b5 | |||
| 2e09f922e0 | |||
| 2db38e70e4 | |||
| 18c9bd9bb5 | |||
| 7efc2436d0 | |||
| 2ad81dbf38 | |||
| 55d529b078 | |||
| 32e469fe5e | |||
| ff98f1f93a | |||
| 97d1b1904a | |||
| e3bb4b8260 | |||
| 79c268ff22 | |||
| 61b7e49b81 | |||
| 4506342894 | |||
| 3de85b4528 | |||
| e13ea21036 | |||
| e606acefb0 | |||
| ca01c1b887 | |||
| ad36b39ead | |||
| e910267857 | |||
| 1b93621170 | |||
| ad39b2d282 | |||
| f3b4bdb12d | |||
| cfa7d4f0aa | |||
| 45b29ae1c5 | |||
| 98fa6901e1 | |||
| b43ec28cfb | |||
| bd7524019a | |||
| bb9f77f5a4 | |||
| d76630e1d6 | |||
| 6cb2e15fd4 | |||
| cc9271eae8 | |||
| 9b3c80e5da | |||
| 40b5ce7baf | |||
| 94360cbde0 | |||
| 4b60dfa8b3 | |||
| ad10fbf107 | |||
| 519a01f3a3 | |||
| 20a96bc828 | |||
| 52911d1332 | |||
| 82fe59404b | |||
| d74abe7e04 | |||
| 1de17cc5bc | |||
| 803857c4b5 | |||
| c5734df18a | |||
| e368c1ba9b | |||
| dbf342507d | |||
| 7fd3a685f3 | |||
| f4d1f19273 | |||
| 1cff6f1343 | |||
| 9a1a89f9b7 | |||
| 30d07f924a | |||
| 422079b823 | |||
| f6ad7551a6 | |||
| 050a82932e | |||
| 312598f28f | |||
| a601ea2909 | |||
| 2d828b8502 | |||
| 53efe2abed | |||
| d160907d20 | |||
| e71c2b1d09 | |||
| ffa50c2570 | |||
| 9c4d5d546c | |||
| 5f88e8ef51 | |||
| 95a4d6c841 | |||
| efee970076 | |||
| f4b36760a4 | |||
| 0044a322db | |||
| 6e1908aac6 | |||
| f64b90ab92 | |||
| 3ac652f98f | |||
| c8d16a537b | |||
| 0a89fac97e | |||
| 07e972d455 | |||
| a0d0287449 | |||
| 0c2cc1cfac | |||
| f770418360 | |||
| c8e5999d1a | |||
| c4fd85c9d7 | |||
| aaf5fe4585 | |||
| f08b134cb5 | |||
| 60edcd312f | |||
| 8b969c4cce | |||
| 281be10198 | |||
| 714803e656 | |||
| c7d8a3780e | |||
| 0ef50cf253 | |||
| 87c0146d86 | |||
| 3300997313 | |||
| 76d75662cd | |||
| 9e8587837a | |||
| 9f627c51f6 | |||
| 6a02d29d6f | |||
| bb0b4eb54c | |||
| 2eb0cce16e | |||
| 753f9ffe32 | |||
| 1a817d43b1 | |||
| 7e414ac64c | |||
| 63d128d152 | |||
| 7664b6a5ae | |||
| fdb4868f98 | |||
| a57032dbbf | |||
| 016011f3f2 | |||
| afdcd01a8f | |||
| 256ce9a6b6 | |||
| 06e7d47ef7 | |||
| 3445e76d9a | |||
| 676bff86cc | |||
| a9586f5b0d | |||
| 05c39328ee | |||
| 3420967e7d | |||
| 3a3ad21dde | |||
| f8cda6d411 | |||
| 3e37f3d62b | |||
| 2bc39f9c8c | |||
| 6290bfcb78 | |||
| efc38b0646 | |||
| 6d6b48a7d4 | |||
| a6f6a00de7 | |||
| 63fcc11826 | |||
| 068636bff0 | |||
| 10a83794c1 | |||
| 85895c7008 | |||
| fe4e2e7721 | |||
| 3cdedf4fd6 | |||
| 2c16570422 | |||
| c8bcc99bbf | |||
| 0c08802f3b | |||
| 4ed9859a79 | |||
| 333b081ca2 | |||
| 0e232a76ed | |||
| a7093e6155 | |||
| 72a2df9c0b | |||
| 7a77e302c2 | |||
| b2f118e6ab | |||
| e09f845a41 | |||
| d190a1960b | |||
| 8e0b95d967 | |||
| 2cbca98ddf | |||
| 05b0699399 | |||
| 434018864b | |||
| 6e2482d678 | |||
| 7685d130b2 | |||
| 34ffc4eb5e | |||
| 3e83f00868 | |||
| c46f42f524 | |||
| 92384967c8 | |||
| 72c7624c20 | |||
| 7c4a8f3b20 | |||
| 5d71e4e1e2 | |||
| a8bad42466 | |||
| ace50ebc04 | |||
| c2c5c1a560 | |||
| ada6425cf7 | |||
| 299f4f9461 | |||
| b61091ed37 | |||
| 0d1b16c242 | |||
| 8a3ef7bd90 | |||
| 58474c4288 | |||
| 079da4fe48 | |||
| cb4a6f6852 | |||
| 76810fbb8d | |||
| 0cc0cdb6cc | |||
| a7f83ebe29 | |||
| 529ac67563 | |||
| 6db7506a46 | |||
| 068e1808fb | |||
| ddcee47ea0 | |||
| d45b2a2b8e | |||
| e1fc6c7e60 | |||
| 1511b50197 | |||
| d045ce4b2f | |||
| dc0afb88de | |||
| 54de8015ed | |||
| 4a98d91789 | |||
| 9afcc3eff0 | |||
| aa8d28bbb5 | |||
| 873e5ec092 | |||
| 2058faa4b4 | |||
| f3f8f4e38e | |||
| 48803697d7 | |||
| cfd9bc3996 | |||
| 42b565b76b | |||
| e38a9eaaf0 | |||
| 9dc0a92185 | |||
| 92162117c8 | |||
| 0d6da4f147 | |||
| be7da0fd7e | |||
| 86ac86f9aa | |||
| 0a7e97c694 | |||
| d8458f9e89 | |||
| cb1b751654 | |||
| d92dbe37db | |||
| 63cff9044e | |||
| 05269032a4 | |||
| 86b8842cff | |||
| 0e68d5b7c5 | |||
| 0fca0452aa | |||
| 2e93d5590e | |||
| 9a8dfc584a | |||
| c826875a4b | |||
| b5b25adde2 | |||
| e55f461292 | |||
| a6587647aa | |||
| f710907738 | |||
| 24185bc0e7 | |||
| 09c22d44cc | |||
| cc6711efff | |||
| 6fa3f89dc8 | |||
| 7796ed4175 | |||
| 08cdcab025 | |||
| b24c870383 | |||
| 29d065b3d5 | |||
| f57a059e93 | |||
| 157fa9f48e | |||
| 3546acf097 | |||
| db63651880 | |||
| 72ec75357a | |||
| 47ad757f74 | |||
| 8fd12408fc | |||
| 398c99f744 | |||
| b9919ebada | |||
| 064661586c | |||
| cb31982c7d | |||
| e3c30c169b | |||
| 7792e9d0f5 | |||
| 71cd93e0ba | |||
| afbf4effc3 | |||
| 176056264b | |||
| c77dc4c168 | |||
| fea5988dac | |||
| 253f81b169 | |||
| e90cd580d4 | |||
| a1edcfe8f2 | |||
| abc96b061e | |||
| dc26de7ca7 | |||
| ade9c2f0df | |||
| 9ee8550cd6 | |||
| 3ca5038d9f | |||
| 7ebc912d72 | |||
| 9a48a985c7 | |||
| 733bb9e22d | |||
| 9b3885b837 | |||
| d8248d9daf | |||
| e4455b8371 | |||
| 13ddc751d8 | |||
| 0cbf0c704e | |||
| 60b7647cdb | |||
| 392b7e0cf3 | |||
| da53b492b4 | |||
| 5b85b13bf8 | |||
| 708d56fbad | |||
| e20f6c4e70 | |||
| 346cdd4d36 | |||
| 2314167970 | |||
| a0d27ba5f1 | |||
| 611636dc7f | |||
| c2a4fb86af | |||
| 85c1743e72 | |||
| 0294b09980 | |||
| 53329070a4 | |||
| 7634034cb7 | |||
| 86054bc98e | |||
| b88798d009 | |||
| 73c6816851 | |||
| 6a78a384e4 | |||
| 3edf509b6e | |||
| 2d59b27e1e | |||
| d3c21b9f63 | |||
| c2bf087004 | |||
| 1bd6ca0deb | |||
| 806c6da39a | |||
| 60c1d033b2 | |||
| 51ac59fdff | |||
| af505cb61c | |||
| 2e3cfea36e | |||
| 60e8f57a29 | |||
| a4149a5b72 | |||
| 89dd555a93 | |||
| 954ea75657 | |||
| f6c95770ed | |||
| e8ebbd5cfd | |||
| 2be1892dc1 | |||
| 77a4543ad1 | |||
| 6fec58c54b | |||
| 76aadea07f | |||
| ffb689422b | |||
| 37432ccb1f | |||
| 092089b88c | |||
| f85f67f827 | |||
| 0b7a4bc845 | |||
| d3515584d9 | |||
| 82433a125c | |||
| 8351b6f1dc | |||
| e5d1807d07 | |||
| b3b54ac8c8 | |||
| bff18ce7d7 | |||
| 4cb00c6af3 | |||
| c6f200889e | |||
| e2ef7d4ef0 | |||
| 5d6260e46c | |||
| 09e9597f12 | |||
| 83412f9550 | |||
| 160c141e79 | |||
| 23620195ff | |||
| de0daf3a8c | |||
| 88b38fa933 | |||
| 30ef52ccf2 | |||
| 12198e5ab2 | |||
| 155fa04a40 | |||
| 5f617f4719 | |||
| 967faa0fd7 | |||
| 6d4a6a2d51 | |||
| 8058192c6b | |||
| 0e41546946 | |||
| 8babb6bc6e | |||
| 9db7713830 | |||
| e510e449fa | |||
| 4f4b509893 | |||
| 0a00796b37 | |||
| 53b7d34816 | |||
| e380f204c5 | |||
| 1b3568e35d | |||
| 69d8d062b3 | |||
| 9bca08995c | |||
| 3e560c9278 | |||
| e6d8f3728d | |||
| 30366a211b | |||
| 62c4eaa07c | |||
| a3718e2204 | |||
| 1eb4d2b986 | |||
| da50045467 | |||
| ff185dfe70 | |||
| 195c0cab7d | |||
| 5b96493dcf | |||
| 3f89d3d7ff | |||
| 12673a3423 | |||
| 3cbc2b015c | |||
| 3dea04d14b | |||
| e203936299 | |||
| 37fd3fe105 | |||
| 5092c1894b | |||
| 8b46350a7f | |||
| 67ce44f960 | |||
| 306aecd004 | |||
| c52d77e5b1 | |||
| 189323defd | |||
| a69580d681 | |||
| c714a22a7f | |||
| 1390496d0d | |||
| f73bad1ccb | |||
| c8dae44c7b | |||
| 27cd6fc52c | |||
| bb39a564c2 | |||
| 7852c0cc5b | |||
| 8e2a3855cf | |||
| b591eb537b | |||
| efefca0a96 | |||
| 2bb90fda04 | |||
| ecb27fda35 | |||
| 6480e94664 | |||
| cd35b4c882 | |||
| bae3e43226 | |||
| a7dfc1d5ec | |||
| d038ba16af | |||
| ca37f0dedf | |||
| 7fddb8ef04 | |||
| d3e46ec3d2 | |||
| 35ec99e35e | |||
| 06a73e4fc1 | |||
| 027e410c52 | |||
| 787ac72a66 | |||
| 7551012ccb | |||
| bc09df39a0 | |||
| 6155decd2b | |||
| bf5f472b94 | |||
| 07015a1189 | |||
| 9954340b89 | |||
| 27b25a4c1e | |||
| c642b64ca8 | |||
| 94039439b7 | |||
| f1dd4fd101 | |||
| bb33550fe3 | |||
| 0d072b26db | |||
| 849016e488 | |||
| 1f74262484 | |||
| 317a4a7be2 | |||
| ebdb7450f1 | |||
| fc311ab128 | |||
| 1590f8b9f1 | |||
| 4d689d4fa0 | |||
| 52002d9d6a | |||
| a852b335ab | |||
| a3690d496d | |||
| 792d7724ed | |||
| 1441e3457a | |||
| a276077efb | |||
| df2d6aca06 | |||
| 2062c8932c | |||
| e6a9b7c312 | |||
| 48107b6840 | |||
| 407f077678 | |||
| d0516c09c0 | |||
| 8df9b3774b | |||
| 13221db7ae | |||
| 9f07b3eda5 | |||
| 5467e33c13 | |||
| b3b5d988cf | |||
| f74046c55a | |||
| b12c6e35fd | |||
| e7571a84b7 | |||
| 1846ba0459 | |||
| 5e0b502d6f | |||
| 7b6883c8a7 | |||
| 15ba3bcdf9 | |||
| 7c3cefc32d | |||
| 9907ad0f62 | |||
| 15a6ea0fe5 | |||
| f2f9221e3f | |||
| 65d22fabc4 | |||
| dc50ddbac9 | |||
| 17e880e9c7 | |||
| a60659bda3 | |||
| f98eb04e6f | |||
| ae691fdea8 | |||
| 51e85eadef | |||
| cb7b239c76 | |||
| 8a429ee8cd | |||
| 5d120950fe | |||
| 7a202b1a74 | |||
| f23a0ee04c | |||
| 02e8053789 | |||
| fbfece1db7 | |||
| a4d336d79a | |||
| 2dcfce6c80 | |||
| 6e5a779760 | |||
| 92a8405d6b | |||
| 69b9877ced | |||
| 9144658ce4 | |||
| d80a35a246 | |||
| ab48e56b5d | |||
| ff98b61c1d | |||
| 9662f13690 | |||
| 87b5bd9638 | |||
| e614820bb8 | |||
| 033a8c9380 | |||
| b29c52bdb8 | |||
| 6fe97e89f9 | |||
| d239b3e15b | |||
| 55a384f66c | |||
| 524228e8bb | |||
| 168fc3d0b6 | |||
| 8b4be7fbd6 | |||
| 6ff801b606 | |||
| d21b92d900 | |||
| ebd9b907f3 | |||
| eeb4e81924 | |||
| 42663dddb6 | |||
| 2cbe3a6f1c | |||
| 15f461b1dd | |||
| 13365aabb2 | |||
| f1de117a96 | |||
| 6c6c9a3d70 | |||
| 9432fbe189 | |||
| d5ec15d0c2 | |||
| 61ded2cc90 | |||
| c149f722e0 | |||
| 90e8a38d40 | |||
| a6c3dfbe1f | |||
| c76467bd34 | |||
| 6457c2520f | |||
| f285cf6fc8 | |||
| 43aceface6 | |||
| be6e135a5a | |||
| 947850d130 | |||
| 55e72659ef | |||
| 25307037bb | |||
| 21d1e05298 | |||
| 7b67234c87 | |||
| b2242f4a60 | |||
| 2b52ed44a3 | |||
| 7b7837d513 | |||
| cdceeed72c | |||
| 9bb76c42ee | |||
| 7c8cc1a0ec | |||
| cfef7762f1 | |||
| d1bc070255 | |||
| 5c590c01ca | |||
| 8795f22f37 | |||
| bfca3c35e3 | |||
| 73449977a8 | |||
| b7573be248 | |||
| 6ce9fc4ca5 | |||
| a39de19378 | |||
| 95da47ae98 | |||
| 7995dec248 | |||
| 335ad4fe59 | |||
| 8f387909c7 | |||
| 25843a7742 | |||
| caff93d0f2 | |||
| 37f7fd8bf8 | |||
| a5440f4d15 | |||
| 29a942e5ce | |||
| ee8804b298 | |||
| 4dbbd4543e | |||
| 7df49156ef | |||
| 75adbb5010 | |||
| 22e7e73dcf | |||
| b2d44fa3ea | |||
| 184f066e85 | |||
| 61295a325c | |||
| 9cb0c56d99 | |||
| 137a864ec0 | |||
| 665aed6627 | |||
| d4ea8748c7 | |||
| ed2f74729f | |||
| 2efc32476b | |||
| d5c29e3797 | |||
| f4d871c234 | |||
| c408c2bf40 | |||
| f84d698248 | |||
| db07e290ca | |||
| 8a31e45e42 | |||
| 095e016e5b | |||
| 3a883ad963 | |||
| 9ead2963f1 | |||
| dd9795c484 | |||
| 6f1d0fd18e | |||
| c1dfc869e3 | |||
| cd0b5969ee | |||
| e2af671876 | |||
| 6d6ab64780 | |||
| be7bf6a802 | |||
| fa8190d302 | |||
| c6a9580b51 | |||
| 8147e5764f | |||
| ffe0e0c052 | |||
| 78fdc34941 | |||
| 2a77b1e630 | |||
| 727c06461a | |||
| 82222954e0 | |||
| d17c2259ff | |||
| 7fd70f70c4 | |||
| 162b4e63a3 | |||
| ab619cc080 | |||
| ee38d61539 | |||
| cd8a0fbd86 | |||
| a9a03b581f | |||
| 41056f5de3 | |||
| 27a143bdcb | |||
| 9be123ffe6 | |||
| 697269d4dc | |||
| c927f18f50 | |||
| a59a1768dc | |||
| 0f386d116a | |||
| 76847c0885 | |||
| 493ffde321 | |||
| 2ca5396708 | |||
| f6360ff6a6 | |||
| bab2a016dc | |||
| 00e6b78f5e | |||
| cb8308713c | |||
| 0d177f7e46 | |||
| 6cb7f934e4 | |||
| d9fafb7d6f | |||
| 57d9803a3f | |||
| f826bc6306 | |||
| 6008fd569f | |||
| 827fe4d0ce | |||
| b707611a3d | |||
| f94948d240 | |||
| 9ad96230ba | |||
| 096cb86312 | |||
| 8c6972fe12 | |||
| f3d204bf34 | |||
| 6a1fa24f84 | |||
| ee51ace1fb | |||
| bbcdd177de | |||
| 588692186f | |||
| 3af14ae25e | |||
| 745c9d5550 | |||
| 145eaefa27 | |||
| 6be4d93ea4 | |||
| 1f98de30d1 | |||
| ccf2062846 | |||
| b4282f535d | |||
| c601a3d702 | |||
| 28adf73121 | |||
| d30eaddc07 | |||
| 966474b2bf | |||
| 5fd391693c | |||
| 904db74e91 | |||
| 1fa7148817 | |||
| ed026eb003 | |||
| 6cad226fc2 | |||
| 8f0ee2f6aa | |||
| 640cad0d03 | |||
| 04c29fe90f | |||
| 5c146db6d9 | |||
| 89c2f4d081 | |||
| 1f98dd64e2 | |||
| e0f2019ad9 | |||
| 52756f53cc | |||
| 454aba0e87 | |||
| 387d7009ab | |||
| dfefd78fd1 | |||
| 7db0c9efab | |||
| f8d943afde | |||
| b3c00661f3 | |||
| 1f2b2972ac | |||
| 14849adcde | |||
| 971ce07b68 | |||
| c0530a2f9f | |||
| 5f14dd1fd8 | |||
| c9c8365dbe | |||
| d09990dec3 | |||
| cff8954b52 | |||
| c2318a3cac | |||
| 6ff404b5f3 | |||
| 53c39f0674 | |||
| 2b604e814b | |||
| e312d820e5 | |||
| 5d8e236258 | |||
| 2ea023b93b | |||
| 4da28f69dc | |||
| cba7c2690b | |||
| cbf5a7be0f | |||
| fcc9d761ba | |||
| 3ac104d1df | |||
| 127833f113 | |||
| 38f59ab010 | |||
| ed69a95311 | |||
| b2e680f454 | |||
| 0b93b30d7f | |||
| 186ea56cbb | |||
| 0e5188f6f8 | |||
| 3c15e85d7a | |||
| 682959a075 | |||
| 6913702897 | |||
| d36a7e2223 | |||
| c9e42e082c | |||
| bbc038d4d3 | |||
| 32f517ab81 | |||
| 9f5a673e5b | |||
| 3e6d5add2b | |||
| eff105483b | |||
| bb4feba434 | |||
| c6da2b4219 | |||
| fa981e8b24 | |||
| e3c36743fe | |||
| e82d25bc33 | |||
| 4def0a4f1d | |||
| cbe07fd2b3 | |||
| c778bcb9c7 | |||
| 0cb35d2de9 | |||
| d0ecb5561d | |||
| 9990c2717a | |||
| be0bb733f8 | |||
| 2ef84e5f2d | |||
| 54a868c789 | |||
| 9670bb3823 | |||
| b901c30ddd | |||
| c6d33ddef0 | |||
| 1088e17974 | |||
| 8889ac1e9f | |||
| d4817ac4cc | |||
| 1e3076675a | |||
| 9da37bb315 | |||
| 68515af7c1 | |||
| 70820f864e | |||
| f515f56083 | |||
| 31bf55ca2c | |||
| 05f609bc9b | |||
| eab6d005b6 | |||
| 477f905858 | |||
| 8a5efbd4ce | |||
| efb93c5556 | |||
| 4c9afbf2a4 | |||
| d141d56967 | |||
| 554949de9f | |||
| 382f36ae06 | |||
| c58b014a58 | |||
| 9ba1f2e8d3 | |||
| 31088c707a | |||
| ca5aef6e22 | |||
| ebdbfe4651 | |||
| 4eadf6a5b2 | |||
| afad02ea38 | |||
| d1bc8f5b1a | |||
| dfc6cf8515 | |||
| 05488d003b | |||
| 560271a7cf | |||
| daba2908ae | |||
| 1576383e92 | |||
| 35beb41484 | |||
| 94e4d3f30f | |||
| 5379f1d4ec | |||
| b7098b9038 | |||
| ebf18b7295 | |||
| 5dd28dde9a | |||
| 2e79ac104e | |||
| 4e8dfa54f5 | |||
| 99ad1619ae | |||
| 09e6e4bb05 | |||
| 319fb4ed27 | |||
| a714c5c235 | |||
| f86fd5e292 | |||
| d7a99c11f0 | |||
| f8a30ac911 | |||
| 8c95e1406a | |||
| 7091db9548 | |||
| 6edca36127 | |||
| 9b841ad810 | |||
| 20f13d83c6 | |||
| d1657e812f | |||
| be49b9637e | |||
| 1a59252c17 | |||
| 23cc5abb1d | |||
| 984e867a82 | |||
| b3aeb6cc7a | |||
| 95a3c5d145 | |||
| 31a7dd703c | |||
| c15c3a9de1 | |||
| 7edfd4b296 | |||
| a5bd5fe803 | |||
| 49d6de17ca | |||
| 562dfd1e60 | |||
| 8a02872188 | |||
| 6fd388da57 | |||
| 36c9843cf1 | |||
| f62a3aef99 | |||
| eafd3f340b | |||
| e1248d6ff2 | |||
| a08a0422d5 | |||
| 6e7d09d297 | |||
| a58dd3639e | |||
| 23117f17e2 | |||
| d013ccd211 | |||
| 8ca794ae99 | |||
| 44a471aff0 | |||
| 25a6a400e1 | |||
| 4ff2207907 | |||
| 877372f748 | |||
| c4658c126f | |||
| 5aadef842e | |||
| d6726fb9ee | |||
| 9e187019cf | |||
| 11ffc4ecc4 | |||
| b660ee2723 | |||
| 3075b0c401 | |||
| 4885b8de1a | |||
| e779bcd5f3 | |||
| fce4a46997 | |||
| cf2da0b193 | |||
| e378520794 | |||
| 7c59a29809 | |||
| 85a78c39c0 | |||
| 4912f0365b | |||
| 6378a8801d | |||
| 25dbc45096 | |||
| ba0642b16e | |||
| a6a42f773e | |||
| 089c7b2a6b | |||
| df32082db8 | |||
| a7f939d73a | |||
| c721aab31c | |||
| c396227fc1 | |||
| 4b31235aad | |||
| d93985bc47 | |||
| 41e45f1b62 | |||
| 5db8c51ad8 | |||
| 8d74f6fd46 | |||
| f1dc018107 | |||
| 53aedd8872 | |||
| 8bbaddd737 | |||
| 7a04403f0e | |||
| 66a0cbf565 | |||
| 6290732479 | |||
| 05ffe72b43 | |||
| bf9efa72a3 | |||
| 2e307cfee4 | |||
| 66e678f5e8 | |||
| d023ac207f | |||
| 267587ba30 | |||
| 8ed0ca89f6 | |||
| be09e9d9d5 | |||
| c9b7ebaf08 | |||
| 90c4a72887 | |||
| 1f577c53b2 | |||
| cb6c219937 | |||
| 77833cd9e5 | |||
| f37c0327ba | |||
| e7e42f21c2 | |||
| 27b3b72465 | |||
| 3a32b403a5 | |||
| 1ea2edcada | |||
| be3833bce0 | |||
| da258d31b8 | |||
| 54c7091ce5 | |||
| eb94fb1f6f | |||
| 644dcbc2c0 | |||
| eddac00bff | |||
| 0c67ceee0a | |||
| 793036a89b | |||
| 4977e5ccdc | |||
| c6caec2f3d | |||
| 90279a1339 | |||
| cc9f04e74c | |||
| 4d3a9b6af3 | |||
| bb86cc480f | |||
| a397296cda | |||
| b6f46e8c02 | |||
| 4478f786e0 | |||
| dc85aacb10 | |||
| 9f5948b8a3 | |||
| 3436fb34a1 | |||
| 62e9d86151 | |||
| b3edd4c11c | |||
| 0440d7e50c | |||
| e86b449526 | |||
| 4e3808e874 | |||
| 95eed594da | |||
| ed968219f1 | |||
| 5108120cd1 | |||
| ed786ba256 | |||
| 25c3a94f85 | |||
| 28558edca2 | |||
| 64a36107fb | |||
| cefbcf1fb0 | |||
| 1ca5c7d140 | |||
| 0556eb948d | |||
| 31d7b1613a | |||
| c9260cab50 | |||
| d47677228c | |||
| c4dd3a4fbf | |||
| f9b9f7d590 | |||
| 180a66c9a4 | |||
| d0155595f2 | |||
| 446e7f72e6 | |||
| 6b6e5d3d9c | |||
| d7c8182d61 | |||
| 6816684a93 | |||
| c2890708b9 | |||
| 5deb9d5b4e | |||
| ff6f8739a9 | |||
| 7b81a4b307 | |||
| a56436b71d | |||
| ee04eed0c9 | |||
| a8fc7b9f0b | |||
| 2bd9888bfd | |||
| b61dbc9219 | |||
| dd9be345e8 | |||
| 06a5aa5204 | |||
| c173110273 | |||
| 899bc667e7 | |||
| b1a6102420 | |||
| 1e057908f8 | |||
| ca0169c921 | |||
| 2658db5992 | |||
| 02020fd0db | |||
| 66c353a050 | |||
| 3cd238c57b | |||
| 4afaba4470 | |||
| 9a1cbaa330 | |||
| 4af38cd866 | |||
| 37225739a4 | |||
| ef7dec9c0d | |||
| 3d5edb5c9d | |||
| d4a0aa33ae | |||
| 799ee704dd | |||
| e3f30df4da | |||
| 563e160009 | |||
| b45d5d3094 | |||
| a7c2fc9919 | |||
| 258575eb4b | |||
| fc596df7f9 | |||
| 8ce7ac2fff | |||
| b6889a94b1 | |||
| eacbd2aed7 | |||
| 59ba17ff18 | |||
| f5687735c0 | |||
| b692ff6d8b | |||
| dd76aabb05 | |||
| 03956ecec8 | |||
| 7863622635 | |||
| 24818f4ba3 | |||
| 61cac662e0 | |||
| bc5fd47409 | |||
| fce643cdc1 | |||
| 673f1e2d90 | |||
| b93009c399 | |||
| 3cf0d8bc71 | |||
| fb2146bc49 | |||
| 7c4a9434c8 | |||
| 31b7aef1db | |||
| 411b11325c | |||
| 0bfd95bcbd | |||
| a789193dfd | |||
| 4e8f49e131 | |||
| 27db0d4b24 | |||
| d4b306a4ef | |||
| 57b3bba0b2 | |||
| 7a3f44b14b | |||
| 44df637602 | |||
| adf4d6160a | |||
| b1ab48abd6 | |||
| 8254459404 | |||
| d04f78fe1b | |||
| 39d013f74c | |||
| f102e442c6 | |||
| d977ba98de | |||
| 266027d880 | |||
| 2a287771f7 | |||
| 8fc939cae4 | |||
| 5b79b9cb2a | |||
| 10923afbf9 | |||
| 58a4448dda | |||
| 877e3e59a8 | |||
| 25531a9599 | |||
| 475fd275ec | |||
| 63c5504d12 | |||
| a4d9a6f66d | |||
| abc20f0a48 | |||
| e59ec6f72f | |||
| 45a7554ff6 | |||
| 8b47d0814d | |||
| c83f302b63 | |||
| 15dce078d3 | |||
| 29fe94bc99 | |||
| 8913343948 | |||
| 4e2e8d2066 | |||
| 6d981257d6 | |||
| 7ca175edc3 | |||
| dc2839e5da | |||
| 66223b982a | |||
| 530c5a5dfe | |||
| 4d83988764 | |||
| 32a5f1c184 | |||
| 3bd78278bf | |||
| 8c1f2fddda | |||
| 8871ca8dcd | |||
| 2060668327 | |||
| fd374f76fe | |||
| 55ba7e7857 | |||
| 5ab9c6ef7a | |||
| c366343e72 | |||
| d95379af40 | |||
| f21f1f1e30 | |||
| 78fa9b2d43 | |||
| bf9b5db6ca | |||
| e697371c90 | |||
| 4e1a5a87da | |||
| 9b76e0155a | |||
| 2a94274ad0 | |||
| d8683c7d87 | |||
| b7ac5a9cd2 | |||
| e931a9c028 | |||
| 4964a973c4 | |||
| 3a309cbc8f | |||
| 974b4446a9 | |||
| f4601cd910 | |||
| 197560545c | |||
| f779076b72 | |||
| 9a20f8ca24 | |||
| d554145356 | |||
| 9214638f03 | |||
| 5f0a12f061 | |||
| 48efa225d1 | |||
| 8a1983bc51 | |||
| c2c930e659 | |||
| 48ebdeff56 | |||
| e9ef7618d0 | |||
| 212f96d743 | |||
| 4fdb3f7ce4 | |||
| 78bd9d3cd3 | |||
| f4fd058c03 | |||
| 5dad87fbe5 | |||
| d48dee2119 | |||
| 7876c57416 | |||
| 578cc36012 | |||
| 21654f95fe | |||
| 688f798548 | |||
| 953e6328e0 | |||
| a819e76eef | |||
| 58d9a6184d | |||
| 365be38c83 | |||
| 200ac68721 | |||
| a925e9c2ef | |||
| 920f542ef1 | |||
| 009e578a67 | |||
| 8e9497fb45 | |||
| 9b0a66d91b | |||
| 76313f8bba | |||
| bbb56dee70 | |||
| 324efe2d33 | |||
| 2c095200a2 | |||
| 4144ef962e | |||
| bdee389b54 | |||
| 2025501edf | |||
| 7d9cfdcd0e | |||
| 3ae4f77113 | |||
| 369e330868 | |||
| 42cd1e7090 | |||
| e3574f7b20 | |||
| 8dd0dff13c | |||
| af7d444661 | |||
| bfd5d9f0d3 | |||
| 4d4d7b8227 | |||
| 0b30152166 | |||
| 8ec3532e39 | |||
| 75a6e5c601 | |||
| 4d80f2b122 | |||
| 68dce02a6d | |||
| bb6f0d3cef | |||
| 4f0e2e3546 | |||
| 89d66d6317 | |||
| b52185beee | |||
| 8877ad9d2f | |||
| 7b071b56d1 | |||
| abb3df50c7 | |||
| 96b5506d74 | |||
| ea883aae57 | |||
| 9fa7977a13 | |||
| 024e9ad746 | |||
| f9198b072d | |||
| 48abcc124f | |||
| fe13bdc811 | |||
| 4b6a541033 | |||
| b77a583906 | |||
| 62f09bf347 | |||
| 588a23b3c5 | |||
| a23fdf5676 | |||
| 1b9d42a132 | |||
| f7c07210d8 | |||
| 86fa741d58 | |||
| 36392c2205 | |||
| 61e9f8996b | |||
| 3c1512f49e | |||
| 0ae4384c7d | |||
| 02c4808ba8 | |||
| b76240b711 | |||
| b51dba9ce8 | |||
| 2ccc6255bf | |||
| aace1afda9 | |||
| aaf6f455d9 | |||
| b1ba81cd53 | |||
| b9dc851e68 | |||
| 4d14220335 | |||
| c1c8baf50a | |||
| 177cd2b09e | |||
| 98176058a1 | |||
| c7dee155cd | |||
| 6b850594e9 | |||
| 95213fe90c | |||
| 3fe0059f80 | |||
| 2ba8174bd4 | |||
| 66162cddc4 | |||
| 90199945e2 | |||
| fb0ee82291 | |||
| f00f11fa1b | |||
| 716cccb1ab | |||
| 59a978b8fd | |||
| 7cbbd46f51 | |||
| 6501ac3aaa | |||
| a3fcec0043 | |||
| 3bb1d69c6e | |||
| d2b37593a9 | |||
| 32436b1868 | |||
| 732e0bd382 | |||
| d96e876352 | |||
| b2f4cfe9c1 | |||
| b8d2b52111 | |||
| fc3d0d9e7f | |||
| 1d6b911052 | |||
| b46c16e0d6 | |||
| 45aa4d51c4 | |||
| b589e40ee8 | |||
| 6221b267ad | |||
| 7b38629e17 | |||
| 6c52c9573d | |||
| 8f34e5f84c | |||
| 00120af128 | |||
| 53006a5bff | |||
| 834c3aee2c | |||
| 2fbf52c3b9 | |||
| 22b8c89e7a | |||
| 60d9656ee3 | |||
| 0e9d1b84cc | |||
| b62080783a | |||
| 6c89a16f9b | |||
| 107afd61de | |||
| 43dda5e077 | |||
| b44fa99d10 | |||
| eff47031bf | |||
| 986a091e99 | |||
| 4cbdcccd61 | |||
| 1b3decbb27 | |||
| 6d58bd0572 | |||
| aa6701d9e5 | |||
| aea691306b | |||
| 9f7c89d6e4 | |||
| eea6a0eda2 | |||
| 807876d2f5 | |||
| 01e673b31b | |||
| d60eb5087d | |||
| 8b72322b3d | |||
| 092fc971f6 | |||
| 2b0aa074c0 | |||
| d267877de8 | |||
| 83675ea1b7 | |||
| 99cecddad6 | |||
| 2bc68c883f | |||
| f0943e9484 | |||
| bdab2f2542 | |||
| 495f589dc5 | |||
| 6aec6cecc5 | |||
| 068ec412bb | |||
| bfdbc715c5 | |||
| f971944ffb | |||
| 6e4ff04f5d | |||
| 4b265fcdbe | |||
| cd759ca84e | |||
| e8e32610a7 | |||
| 9ff6f1da26 | |||
| 840fc3f280 | |||
| 9b5c2a3918 | |||
| b8ba67e47c | |||
| 8bfa9c46b4 | |||
| 2940d19f08 | |||
| f037f608e2 | |||
| 5899b98936 | |||
| 1b3d2639bd | |||
| a5e39811a9 | |||
| b138837bdd | |||
| c67afdd608 | |||
| e034a8744e | |||
| 582a7d25f2 | |||
| ff00d23aac | |||
| 96d2973cc9 | |||
| 6fd2efbab3 | |||
| 0ac3b3f8ef | |||
| 4cdad75475 | |||
| 83d8308370 | |||
| ac78e36087 | |||
| 711233654d | |||
| 92d2fe548f | |||
| 2057219dce | |||
| 21af626dda | |||
| 5c7841d3b0 | |||
| 308bd84e2d | |||
| 9e0c7a3050 | |||
| a574d33792 | |||
| 2ea0753743 | |||
| 949fbb6c91 | |||
| b035941bfd | |||
| 3400801e27 | |||
| 8f875af4a8 | |||
| c4a73a6b7b | |||
| 0e8cf31c1e | |||
| 7adabe6b06 | |||
| bdf7eeadb6 | |||
| a7b7c50624 | |||
| bed34395c2 | |||
| 4700a233c6 | |||
| d01b3c2d20 | |||
| 92ed76434e | |||
| 1aa80801b9 | |||
| f2b2cd09b8 | |||
| cd5d0f2783 | |||
| 1d0cd9a797 | |||
| 2f2b60cc94 | |||
| b268e6eb11 | |||
| a112e4d333 | |||
| 64a5556559 | |||
| 9a81515812 | |||
| 2d19b93949 | |||
| c0de6b2959 | |||
| f008b08d1e | |||
| 0974ef3f15 | |||
| 09c6ce5846 | |||
| e4d3420585 | |||
| 1ea172415d | |||
| cde1f2caa8 | |||
| 88ae58e53c | |||
| e3d406cc70 | |||
| 663b91c6fe | |||
| b48bada49f | |||
| f84b1b39ca | |||
| 092a0a1d32 | |||
| aa180199cc | |||
| 87b88c55d8 | |||
| c55938300c | |||
| 07d29f507e | |||
| 41d5b42156 | |||
| f14ec82a9c | |||
| 9e51872ece | |||
| e3d9f19580 | |||
| 30a3f5af49 | |||
| 8ed84731d8 | |||
| e2d6446b22 | |||
| 872b3a7558 | |||
| a31f77c5c1 | |||
| 7c880679ee | |||
| 74407bc1b2 | |||
| d7b4c5f112 | |||
| 89fdfe1edb | |||
| 9b9346ecb4 | |||
| 08c9fb6c7d | |||
| 703afd7e15 | |||
| a454ca0c50 | |||
| a755274a25 | |||
| 719ed5d49a | |||
| f1ae44f8ac | |||
| f86efd9a29 | |||
| d4d7850b81 | |||
| 9ffefb8e4b | |||
| eebb52b399 | |||
| 3091c9623e | |||
| 39a85bb913 | |||
| 40d512e263 | |||
| a856391645 | |||
| 57d2172227 | |||
| a328326570 | |||
| a241f5c84b | |||
| 4729ecf20d | |||
| 686a96a4ac | |||
| 9b629f428a | |||
| 5df4c8e92d | |||
| 442ea69220 | |||
| d92cf2b0df | |||
| 6028f91084 | |||
| 5229fac41b | |||
| 1fbfb03896 | |||
| 7eb0688aac | |||
| 15d2170eda | |||
| 28f1123235 | |||
| 36dc39913d | |||
| ed754c06c5 | |||
| 6f0fa1c367 | |||
| 657c68d75e | |||
| 106e14bfef | |||
| 0df9d4aa70 | |||
| 7f8762a6d1 | |||
| 5ced21e2a4 | |||
| f5127bbe0c | |||
| 0e5612d573 | |||
| 378608e7dc | |||
| f9224f1b33 | |||
| df6d47d2cf | |||
| 2adf0455de | |||
| c71c685bba | |||
| fde5d5e7b6 | |||
| d6a1e74268 | |||
| 15f07fa821 | |||
| f19b624df2 | |||
| e145fc0e6e | |||
| 64bfd38d33 | |||
| 1b5a239801 | |||
| 4f5eaa3fd5 | |||
| ffa70f4205 | |||
| d568301316 | |||
| 0d3295c6a2 | |||
| bf17f4d256 | |||
| 0ecbdeb8e1 | |||
| c3bf5d3267 | |||
| d0f0400862 | |||
| 8d1c7d5019 | |||
| bd42e57027 | |||
| adbb4afed6 | |||
| 022496fead | |||
| 275c8f7815 | |||
| 056cb74a68 | |||
| 9c824ee659 | |||
| 4a6caedab9 | |||
| da68eff111 | |||
| 119df006ed | |||
| 6718c75d4a | |||
| 6de0f2f86a | |||
| fbbc8d3e22 | |||
| 4edf4ee159 | |||
| 42dc254085 | |||
| fe1601916d | |||
| 1323015e03 | |||
| 657f53fcb4 | |||
| 09191d8526 | |||
| 23780a7711 | |||
| f2b351edab | |||
| df53d812eb | |||
| d87c3b8040 | |||
| a9c9c31efd | |||
| 9c261f7d8a | |||
| b4293da182 | |||
| 727e53a70c | |||
| 030d77e8cd | |||
| d344458ddc | |||
| 1cfc55a1e7 | |||
| b097eea3c2 | |||
| b6b210676f | |||
| 479440d2f4 | |||
| b533196187 | |||
| e06736f0a7 | |||
| 0cf43c29e8 | |||
| f92ece762a | |||
| 678a581647 | |||
| 906f45f247 | |||
| 5b078ac743 | |||
| 8d00e46a48 | |||
| 79d1a0f2ef | |||
| e9477034be | |||
| 9b1b50dd98 | |||
| 54ad40699c | |||
| 1ffbef0344 | |||
| 6bf34c96d2 | |||
| 6bf2fb167d | |||
| c5824eba3b | |||
| c4b6a406ad | |||
| b5e5a50305 | |||
| 09f316dd15 | |||
| 3eb09a0f71 | |||
| e54718f48e | |||
| 6d5a963b3f | |||
| f6d13447e9 | |||
| 5cd23ccb54 | |||
| 9c1779f846 | |||
| 4b6ffcd6a1 | |||
| 6a414a7fb6 | |||
| ff92aa455f | |||
| 067bb74ff9 | |||
| fe95548a92 | |||
| 99b563ee9d | |||
| 1461f46548 | |||
| 098093dbc0 | |||
| e62e6db99a | |||
| b6b63f9c57 | |||
| f292de452d | |||
| f20f6178e5 | |||
| 9cfdda9207 | |||
| 993dc6b4bc | |||
| e7e5654bfd | |||
| 3769a52f5f | |||
| a08ae304f9 | |||
| c6459b8bd6 | |||
| 19a0b54afb | |||
| 06ec2fdbdc | |||
| 76bf1984a3 | |||
| d41f331060 | |||
| 3335dbf751 | |||
| 8b7c7a1aaa | |||
| eef2a0c0b9 | |||
| b1a6f949b0 | |||
| f15f275639 | |||
| c19c3f743c | |||
| 1d1107cb75 | |||
| db8c8fdfa6 | |||
| 91c02ae143 | |||
| 565f372726 | |||
| 99132c84ad | |||
| 48f21340e4 | |||
| db610e5f0d | |||
| 84a1c0f273 | |||
| 420540361b | |||
| 1d830662fe | |||
| 25a10a922d | |||
| c7682f1a22 | |||
| 3a1b79b8dd | |||
| 32341f857d | |||
| 9c8af6337f | |||
| 1c65afc17d | |||
| 2adc2fbb1b | |||
| e90c71ef23 | |||
| 94629c884f | |||
| 32ec308187 | |||
| 5b8233ce7f | |||
| 10ab9c33fa | |||
| a36187301d | |||
| 1cefb7c3fb | |||
| 1c1d2dce87 | |||
| 2bd09dc71f | |||
| 5abad53cfb | |||
| 155b7e47ff | |||
| 52442f1d82 | |||
| 372cb1b6b8 | |||
| bf0da39a3b | |||
| 3267091574 | |||
| 93ad887271 | |||
| 756781c27c | |||
| 13ef2444eb | |||
| 1c4154dcaf | |||
| 83e13850b6 | |||
| 9df986a9b7 | |||
| be03086f10 | |||
| 632a122471 | |||
| 50adc6401c | |||
| c0507b799e | |||
| bcbd4097cc | |||
| bb300cdd18 | |||
| 2128b9815e | |||
| d80be0cc1b | |||
| 5fc83853ca | |||
| 27c3abb7c2 | |||
| 8e8cfe9429 | |||
| 2a3f5a7c2c | |||
| ee5490db01 | |||
| 6be503aa02 | |||
| de87b5491a | |||
| 6667beccf3 | |||
| 375f6ae048 | |||
| 0ac35ca71d | |||
| 7906ec6553 | |||
| 3971cd0896 | |||
| e1c75a9cd9 | |||
| f245b70061 | |||
| b84d865004 | |||
| 3de9aa65bc | |||
| 2cb37d34f3 | |||
| fdf471db8c | |||
| dcad3b4355 | |||
| 6d9d722092 | |||
| b3586c05e6 | |||
| 688964785b | |||
| 4d17b96b5d | |||
| 558cb53aba | |||
| 9628299145 | |||
| 90c018e5c4 | |||
| 6b5ff6708a | |||
| c38a57b5b1 | |||
| 65dc049ff2 | |||
| ddcbf8de71 | |||
| 6aac143c9b | |||
| d64ffa0632 | |||
| 4421a872f4 | |||
| 1825dbb587 | |||
| 3f5c281422 | |||
| 38dc13bb19 | |||
| b1fceb7ad1 | |||
| 1319481a3d | |||
| 01978a6ff7 | |||
| 11b9fd4edd | |||
| 7d9613f55f | |||
| 4c7a909047 | |||
| 285b0de8af | |||
| 43233b4576 | |||
| 13782526d7 | |||
| 5ed69e56f8 | |||
| 1fbdd39e83 | |||
| a59338ba68 | |||
| 0a5f13ee42 | |||
| f8bd1c403c | |||
| 2eb1d67f15 | |||
| 84e8e65a21 | |||
| ec2ef303d5 | |||
| 713e151ffb | |||
| bc793401ee | |||
| 088ffea987 | |||
| a422a26554 | |||
| 87ca3181ab | |||
| 945f7700a7 | |||
| b471b8a873 | |||
| d2e422dede | |||
| 18a6c240f7 | |||
| 738c958195 | |||
| d3bad61f74 | |||
| 8811ab99cf | |||
| a31c3ea665 | |||
| 878c52daf0 | |||
| 939b8823cd | |||
| 525eb7b135 | |||
| 3db8a2df24 | |||
| 3c0b2cce6c | |||
| 2d924d1548 | |||
| 9fd4df68d4 | |||
| 278cf40d78 | |||
| 34e2c5c2ad | |||
| d915973f09 | |||
| 5df9d33741 | |||
| 27392dde2d | |||
| 15bee7ee56 | |||
| e2d2024cc2 | |||
| 4ee8dd67c6 | |||
| 137a5d3e3b | |||
| 62dcf4671d | |||
| 7b9fb2873c | |||
| 83dab93ea2 | |||
| 29be9eb3cc | |||
| 0c1eef4a87 | |||
| c5fe6f5326 | |||
| 0ea523f104 | |||
| d6e4c1a616 | |||
| 199dcb9baf | |||
| ca180c4b98 | |||
| 4d35016cfa | |||
| 7295968394 | |||
| 5d18be16e6 | |||
| 87a5b0913b | |||
| 86a629d9ad | |||
| 8bb43d915a | |||
| 08505a56ac | |||
| 12c9223ab2 | |||
| 9d10812945 | |||
| 000844c7ac | |||
| 0e754a70bb | |||
| 5931d8e603 | |||
| 502c53d1fb | |||
| e1da33e2df | |||
| 99821a9aba | |||
| ef4208a0ad | |||
| d3997ff0d7 | |||
| d358ac217d | |||
| f549a446c3 | |||
| 82f5a7821b | |||
| a48d90fd32 | |||
| 1f57455f67 | |||
| 0c8f515e83 | |||
| 5f4ba331d5 | |||
| e8210b467c | |||
| e9fe0ee512 | |||
| 18a9f562df | |||
| 11356f5e3b | |||
| 516aee0eec | |||
| cfa1b85454 | |||
| 5f96bef5a3 | |||
| 0083753218 | |||
| 103321aea2 | |||
| 28bf1fc477 | |||
| ab3583d542 | |||
| 919caffcb9 | |||
| 0ce8b9fa18 | |||
| 7494cd89d3 | |||
| 8d8eff747b | |||
| 711aab1c79 | |||
| abf073bd22 | |||
| cca1cd2c5d | |||
| 6e1ed5b26a | |||
| 2fa7aaea22 | |||
| 02e7cb5640 | |||
| 1eddd16466 | |||
| 97e110627e | |||
| 9a296a5f15 | |||
| 99307243d9 | |||
| 6e88350295 | |||
| 1de2d6b17e | |||
| 0d7f43cc22 | |||
| cfbd5902e6 | |||
| 38bd227c4b | |||
| fd049c5140 | |||
| a957d61087 | |||
| b20a816854 | |||
| a7144d0c4f | |||
| 0c9f755e5a | |||
| ba9dd014f3 | |||
| 26f5a0e42b |
234
LICENSE
234
LICENSE
@@ -1,8 +1,232 @@
|
|||||||
MIT License
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Copyright (c) <year> <copyright holders>
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
“This License” refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||||
|
|
||||||
|
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||||
|
|
||||||
|
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||||
|
|
||||||
|
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||||
|
|
||||||
|
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||||
|
|
||||||
|
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||||
|
|
||||||
|
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||||
|
|
||||||
|
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
NodeMgmt
|
||||||
|
Copyright (C) 2018 DCS
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
NodeMgmt Copyright (C) 2018 DCS
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
# NodeMgmt - Galera/NGINX Node Management
|
# NodeMgmt - Linux Server Node Management
|
||||||
|
|
||||||
|
bash <(curl -sL https://go.scity.us/install-nodemgmt)
|
||||||
bash <(curl -sL https://scity.xyz/install-nodemgmt)
|
|
||||||
|
|||||||
17
conf/copycerts.sh.example.inc
Executable file
17
conf/copycerts.sh.example.inc
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
## Comma-seperated for multiple sites
|
||||||
|
local COPYCERT="hostname.domain.com"
|
||||||
|
|
||||||
|
## Comma-seperated, in same order as above
|
||||||
|
local CERTFOLDER="/local/cert/path"
|
||||||
|
|
||||||
|
COPYCERTS_POST_COMMANDS(){
|
||||||
|
##
|
||||||
|
## Commands to run if cert is replaced
|
||||||
|
##
|
||||||
|
|
||||||
|
SERVICE_MGMT nginx reload
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
160
conf/defaults.local.example.inc
Executable file
160
conf/defaults.local.example.inc
Executable file
@@ -0,0 +1,160 @@
|
|||||||
|
# DEFINE THE ADDRESS FOR THE HOST THAT WILL RUN PRIMARY NODE MANAGEMENT TASKS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_NODEMANAGER=192.168.1.5
|
||||||
|
|
||||||
|
# DEFINE VCENTER INFO TO APPLY SSL CERTS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_VC_HOSTNAME='vCenter FQDN or LAN IP'
|
||||||
|
NM_VC_USER='administrator@vsphere.local'
|
||||||
|
NM_VC_PASS='supersecret'
|
||||||
|
|
||||||
|
# DEFINE DYNAMIC DNS LOGIN INFO FOR POWER-DNS SERVERS FOR UPDATING RECORDS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
# NM_PDNS_HOST=""
|
||||||
|
NM_PDNS_USER=""
|
||||||
|
NM_PDNS_PASS=""
|
||||||
|
NM_PDNS_APIKEY=""
|
||||||
|
NM_DYNDNS_SITES['mainsite']='comma seperated list of DNS A records to update'
|
||||||
|
NM_DYNDNS_SITES['offsite']='comma seperated list of DNS A records to update for other site'
|
||||||
|
|
||||||
|
# DEFINE PATHS FOR NEW CERTS AND NEW SITES (except proxy sites which default to nginx)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_CERTPATHS['LB']='/etc/letsencrypt'
|
||||||
|
NM_WWWPATHS['WEB']='/var/www'
|
||||||
|
|
||||||
|
# DEFIINE NODE TYPES OF THEIR ASSOCIATES HOSTS TO MONITOR (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_HOSTS['LB']=192.168.1.11,192.168.1.12
|
||||||
|
NM_HOSTS['MYSQL']=192.168.1.21,192.168.1.22,192.168.1.23
|
||||||
|
NM_HOSTS['WEB']=192.168.1.31,192.168.1.32
|
||||||
|
|
||||||
|
# DEFINES NODE TYPE NAMES (THIS LIST ALSO DEFINES WHICH NODE TYPES ARE ENABLED)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_NODETYPES['LB']='LoadBalancer'
|
||||||
|
NM_NODETYPES['MYSQL']='MYSQL'
|
||||||
|
# NM_NODETYPES['WEB']='Webserver'. # MONITORING DISABLED
|
||||||
|
|
||||||
|
# DEFINES HOST DESCRIPTIONS FOR CONFIGURED HOSTS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_HOSTNAMES['192.168.1.31']='Webserver-Node1'
|
||||||
|
NM_HOSTNAMES['192.168.1.32']='Webserver-Node2'
|
||||||
|
NM_HOSTNAMES['192.168.1.21']='MySQL-Node1'
|
||||||
|
NM_HOSTNAMES['192.168.1.22']='MySQL-Node2'
|
||||||
|
NM_HOSTNAMES['192.168.1.23']='MySQL-Node3'
|
||||||
|
NM_HOSTNAMES['192.168.1.11']='LoadBalancer-Node1'
|
||||||
|
NM_HOSTNAMES['192.168.1.12']='LoadBalancer-Node2'
|
||||||
|
|
||||||
|
# DEFINES SERVICES TO MONITOR ON EACH HOST PART OF THE NODE TYPE (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_SERVICES_CHECK['LB']=nginx,haproxy,keepalived
|
||||||
|
NM_SERVICES_CHECK['MYSQL']=mariadb,proxysql,keepalived
|
||||||
|
NM_SERVICES_CHECK['WEB']=nginx,php7.2-fpm,php7.3-fpm,php7.4-fpm,php8.2-fpm,gitea,keepalived
|
||||||
|
|
||||||
|
# DEFINES DOCKERS TO MONITOR ON EACH HOST PART OF THE NODE TYPE (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_DOCKERS_CHECK['LB']=
|
||||||
|
NM_DOCKERS_CHECK['MYSQL']=
|
||||||
|
NM_DOCKERS_CHECK['WEB']=phpmyadmin,phppgadmin,vaultwarden,heimdall,authelia
|
||||||
|
|
||||||
|
# DEFINES THE CONFIGURED DOCKER COMPOSE CONFIG PATHS, THIS WILL ALLOW NODEMGMT TO TRY AND REBUILD MISSING REQUIRED DOCKERS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_DOCKER_COMPOSE_LOC['authelia']='/mnt/web-data/authelia'
|
||||||
|
NM_DOCKER_COMPOSE_LOC['phpmyadmin']='/mnt/web-data/phpmyadmin'
|
||||||
|
NM_DOCKER_COMPOSE_LOC['phppgadmin']='/mnt/web-data/phppgadmin'
|
||||||
|
NM_DOCKER_COMPOSE_LOC['vaultwarden']='/mnt/web-data/vaultwarden'
|
||||||
|
NM_DOCKER_COMPOSE_LOC['heimdall']='/mnt/web-data/heimdall'
|
||||||
|
|
||||||
|
# DEFINES REPLICATED ITEMS FROM BELOW TO MONITOR FOR REPLICATION (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_REPL_CHECK['LB']=lb-data
|
||||||
|
NM_REPL_CHECK['MYSQL']=
|
||||||
|
NM_REPL_CHECK['WEB']=web-data
|
||||||
|
|
||||||
|
# DEFINES FOLDERS TO BE MONITORED FOR REPLICATION
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_REPL_CHECK_LOC['lb-data']='/opt/lb-data'
|
||||||
|
NM_REPL_CHECK_LOC['web-data']='/mnt/web-data'
|
||||||
|
|
||||||
|
# DEFINES DESCRIPTIONS FOR REPLICATED FOLDERS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_REPL_DESC['lb-data']='LB-Data (NGINX / SSL-Certs)'
|
||||||
|
NM_REPL_DESC['web-data']='Web Data (NGINX/PHP)'
|
||||||
|
|
||||||
|
# DEFINES NGINX PATHS FOR NODE TYPES (ONLY REQUIRED IF PATH IS REPLICATED BETWEEN HOSTS AND IS NEEDED TO BE VERIFIED BEFORE CERTAIN TASKS)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_REPL_NGINX_PATHS['LB']='/opt/lb-data/nginx'
|
||||||
|
NM_REPL_NGINX_PATHS['WEB']='/mnt/web-data/nginx'
|
||||||
|
|
||||||
|
# DEFINES SERVICES TO BE MONITORED FOR RUNNING ONLY ON THE HOST CURRENTLY IN PRIMARY CONTROL OF THE NODE TYPE (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_SINGLESRVR_SERVICES['LB']=
|
||||||
|
NM_SINGLESRVR_SERVICES['MYSQL']=
|
||||||
|
NM_SINGLESRVR_SERVICES['WEB']=gitea
|
||||||
|
|
||||||
|
# DEFINES DOCKERS TO BE MONITORED FOR RUNNING ONLY ON THE HOST CURRENTLY IN PRIMARY CONTROL OF THE NODE TYPE (comma seperated)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_SINGLESRVR_DOCKERS['LB']=
|
||||||
|
NM_SINGLESRVR_DOCKERS['MYSQL']=
|
||||||
|
NM_SINGLESRVR_DOCKERS['WEB']=vaultwarden,heimdall,authelia
|
||||||
|
|
||||||
|
# DEFINES THE KEEPALIVE IP ADDRESS FOR THE NODE TYPE WHEN USING SINGLE SERVER MONITORING (USED TO VERIFY PRIMARY NODE)
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_SINGLESRVR_IP['LB']=
|
||||||
|
NM_SINGLESRVR_IP['MYSQL']=
|
||||||
|
NM_SINGLESRVR_IP['WEB']=192.168.1.10
|
||||||
|
|
||||||
|
|
||||||
|
# DEFINES THE CONFIGURED SERVICE DESCRIPTIONS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_SERVICE_DESC['mysql']='MySQL DB Server'
|
||||||
|
NM_SERVICE_DESC['mariadb']='MariaDB (MySQL DB Server)'
|
||||||
|
NM_SERVICE_DESC['postgresql']='PostgreSQL'
|
||||||
|
NM_SERVICE_DESC['apache2']='Apache Web Server'
|
||||||
|
NM_SERVICE_DESC['nginx']='NGINX Web Server'
|
||||||
|
NM_SERVICE_DESC['gogs']='Gogs Git Repository'
|
||||||
|
NM_SERVICE_DESC['gitea']='Gitea Git Repository'
|
||||||
|
NM_SERVICE_DESC['haproxy']='HAProxy Load Balancer'
|
||||||
|
NM_SERVICE_DESC['keepalived']='Keepalived Load Balancer'
|
||||||
|
NM_SERVICE_DESC['maxscale']='MaxScale Load Balancer'
|
||||||
|
NM_SERVICE_DESC['cmon']='ClusterControl'
|
||||||
|
NM_SERVICE_DESC['cmon-events']='CC-Events Manager'
|
||||||
|
NM_SERVICE_DESC['cmon-cloud']='CC-Cloud Daemon'
|
||||||
|
NM_SERVICE_DESC['php5.6-fpm']='PHP 5.6 FPM'
|
||||||
|
NM_SERVICE_DESC['php7.2-fpm']='PHP 7.2 FPM'
|
||||||
|
NM_SERVICE_DESC['php7.3-fpm']='PHP 7.3 FPM'
|
||||||
|
NM_SERVICE_DESC['php7.4-fpm']='PHP 7.4 FPM'
|
||||||
|
NM_SERVICE_DESC['php8.0-fpm']='PHP 8.0 FPM'
|
||||||
|
NM_SERVICE_DESC['php8.1-fpm']='PHP 8.1 FPM'
|
||||||
|
NM_SERVICE_DESC['php8.2-fpm']='PHP 8.2 FPM'
|
||||||
|
NM_SERVICE_DESC['syncthing']='Syncthing'
|
||||||
|
NM_SERVICE_DESC['pdns']='(PowerDNS) DNS Serveice'
|
||||||
|
NM_SERVICE_DESC['pdnsadmin']='(PowerDNS) Admin Portal'
|
||||||
|
NM_SERVICE_DESC['pdnsadmin.socket']='(PowerDNS) Portal Socket'
|
||||||
|
NM_SERVICE_DESC['proxysql']='ProxySQL Load Balancer'
|
||||||
|
NM_SERVICE_DESC['glusterd']='Gluster FileSystem'
|
||||||
|
NM_SERVICE_DESC['redis-server']='Redis Caching Server'
|
||||||
|
NM_SERVICE_DESC['mosquitto']='Mosquitto MQTT Broker'
|
||||||
|
NM_SERVICE_DESC['tailscaled']='Tailscale P2P VPN'
|
||||||
|
NM_SERVICE_DESC['monitor-power']='Server Power Monitor'
|
||||||
|
NM_SERVICE_DESC['monitor-temp']='Server Temp Monitor'
|
||||||
|
|
||||||
|
# DEFINES THE CONFIGURED DOCKER DESCRIPTIONS
|
||||||
|
#-----------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
NM_DOCKER_DESC['authelia']='Authelia'
|
||||||
|
NM_DOCKER_DESC['phpmyadmin']='phpMyAdmin'
|
||||||
|
NM_DOCKER_DESC['phppgadmin']='phpPgAdmin'
|
||||||
|
NM_DOCKER_DESC['vaultwarden']='VaultWarden'
|
||||||
|
NM_DOCKER_DESC['heimdall']='Heimdall'
|
||||||
|
NM_DOCKER_DESC['uptime-kuma']='Uptime-Kuma'
|
||||||
|
NM_DOCKER_DESC['nginx-proxy_manager']='Nginx Proxy Manager'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
13
conf/rsyslog/01-ignore-session-messages.conf
Normal file
13
conf/rsyslog/01-ignore-session-messages.conf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
if (
|
||||||
|
($syslogtag startswith 'systemd[' or $syslogtag startswith 'systemd-logind[') and
|
||||||
|
(
|
||||||
|
re_match($msg, 'session-') or
|
||||||
|
re_match($msg, 'Started Session') or
|
||||||
|
re_match($msg, 'Deactivated') or
|
||||||
|
re_match($msg, 'Consumed') or
|
||||||
|
re_match($msg, 'New session') or
|
||||||
|
re_match($msg, 'Removed session')
|
||||||
|
)
|
||||||
|
) then {
|
||||||
|
stop
|
||||||
|
}
|
||||||
5
conf/ssl-domain-checks.example.conf
Normal file
5
conf/ssl-domain-checks.example.conf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# domain.name.com PORT
|
||||||
|
#
|
||||||
|
# example
|
||||||
|
# somethingcool.example.com 443
|
||||||
|
|
||||||
326
defaults.inc
326
defaults.inc
@@ -1,128 +1,260 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.02072019'
|
VERS='5.6.52-11192025'
|
||||||
NODEHOSTS=10.5.10.51,10.5.10.52,10.5.10.53
|
NM_BETA=false
|
||||||
NODESERVICES=mysql,nginx,gitea,haproxy,keepalived,maxscale
|
|
||||||
REPL_CHECKS=
|
|
||||||
CERT_DAEMON='/usr/bin/certbot'
|
|
||||||
FOLDER=/opt/idssys/nodemgmt
|
|
||||||
SCRIPT=${FOLDER}/nodemgmt-scripts.sh
|
|
||||||
|
|
||||||
IFS=,
|
|
||||||
NODE_HOSTS=(${NODEHOSTS})
|
|
||||||
NODE_SERVICES=(${NODESERVICES})
|
|
||||||
LOCAL_SERVICES=(${LOCAL_SERVICES})
|
|
||||||
unset IFS
|
|
||||||
|
|
||||||
declare -A NM_SERVICES
|
noheader=' test service status-check nightlyrephp7.3-fpm,new backup report reportrun check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck offsite-staticroute-fix '
|
||||||
NM_SERVICES['mysql']='MySQL'
|
|
||||||
NM_SERVICES['nginx']='NGINX'
|
declare -i errtime
|
||||||
NM_SERVICES['gogs']='Gogs'
|
[ "${NM_FOLDER}" == "" ] && NM_FOLDER=/opt/idssys/nodemgmt
|
||||||
NM_SERVICES['gitea']='Gitea'
|
NM_SRVCOPT=(start stop restart reload enable disable)
|
||||||
NM_SERVICES['haproxy']='HAProxy'
|
|
||||||
NM_SERVICES['keepalived']='Keepalived'
|
# TSI=$(/sbin/ip link | grep tailscale0)
|
||||||
NM_SERVICES['maxscale']='MaxScale'
|
# [ ${#TSI} != 0 ] && RUN_NODE_TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print $4}' | cut -d/ -f1) || RUN_NODE_TSIP=""
|
||||||
NM_SERVICES['cmon']='CC-Controller'
|
|
||||||
NM_SERVICES['cmon-events']='CC-Events Manager'
|
|
||||||
NM_SERVICES['cmon-cloud']='CC-Cloud Daemon'
|
if [ "$(ip route | awk '/default/ { print $5 }')" == "link" ]; then
|
||||||
|
RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5; exit }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
|
elif [ "$(ip a | awk '/wg0/')" ]; then
|
||||||
|
RNIP=$(ip a | awk '/wg0/' | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
|
else
|
||||||
|
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f ${NM_FOLDER}/conf/defaults.local.inc ]; then
|
||||||
|
declare -A NM_HOSTS
|
||||||
|
declare -A NM_SERVICES_CHECK
|
||||||
|
declare -A NM_DOCKERS_CHECK
|
||||||
|
declare -A NM_REPL_CHECK
|
||||||
|
declare -A NM_REPL_NGINX_PATHS
|
||||||
|
declare -A NM_HOSTNAMES
|
||||||
|
declare -A NM_NODETYPES
|
||||||
|
declare -A NM_SERVICE_DESC
|
||||||
|
declare -A NM_DOCKER_DESC
|
||||||
|
declare -A NM_DOCKER_COMPOSE_LOC
|
||||||
|
declare -A NM_REPL_CHECK_LOC
|
||||||
|
declare -A NM_REPL_DESC
|
||||||
|
declare -A NM_SINGLESRVR_SERVICES
|
||||||
|
declare -A NM_SINGLESRVR_DOCKERS
|
||||||
|
declare -A NM_SINGLESRVR_IP
|
||||||
|
declare -A NM_CERTPATHS
|
||||||
|
declare -A NM_WWWPATHS
|
||||||
|
declare -A NM_DYNDNS_SITES
|
||||||
|
declare -A NM_HOST_CPULEVELS
|
||||||
|
|
||||||
|
source ${NM_FOLDER}/conf/defaults.local.inc
|
||||||
|
|
||||||
|
[ "${NM_REPL_CHECK_TIMEOUT}" != "" ] && NM_REPL_CHECK_TIMEOUT=${NM_REPL_CHECK_TIMEOUT} || NM_REPL_CHECK_TIMEOUT=5 #MINUTES
|
||||||
|
[ "${CERT_DAEMON}" == "" ] && CERT_DAEMON='/opt/certbot/bin/certbot'
|
||||||
|
|
||||||
|
|
||||||
|
IFS=,
|
||||||
|
LOCAL_SERVICES=(${LOCAL_SERVICES})
|
||||||
|
unset IFS
|
||||||
|
|
||||||
|
NODETYPES=$(for k in "${!NM_NODETYPES[@]}"; do echo "${NM_NODETYPES["$k"]} ${k}"; done | sort -f | while read desc nmtype; do echo ${nmtype}; done)
|
||||||
|
IFS=$'\n' NM_NODE_TYPES=(${NODETYPES}); unset IFS
|
||||||
|
# printf "[%s]\n" "${NM_NODE_TYPES[@]}"
|
||||||
|
|
||||||
|
for ntype in "${NM_NODE_TYPES[@]}"; do
|
||||||
|
arr ${ntype}_HOSTS
|
||||||
|
arr ${ntype}_SERVICES_CHECK
|
||||||
|
arr ${ntype}_DOCKERS_CHECK
|
||||||
|
arr ${ntype}_REPL_CHECK
|
||||||
|
arr ${ntype}_SINGLESRVR_SERVICES
|
||||||
|
arr ${ntype}_SINGLESRVR_DOCKERS
|
||||||
|
arr ${ntype}_SINGLESRVR_IP
|
||||||
|
|
||||||
|
IFS=,; var=(${NM_HOSTS[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_HOSTS $value
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${NM_SERVICES_CHECK[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_SERVICES_CHECK[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_SERVICES_CHECK $value
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_DOCKERS_CHECK[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_DOCKERS_CHECK[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_DOCKERS_CHECK $value
|
||||||
|
done
|
||||||
|
arr_insert ${ntype}_DOCKERS_CHECK watchtower
|
||||||
|
([[ "${RNIP}" != "10.6."* ]] && [ "${ntype}" != "ESPH" ]) && arr_insert ${ntype}_DOCKERS_CHECK portainer_agent
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_REPL_CHECK[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_REPL_CHECK[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_REPL_CHECK $value
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_SINGLESRVR_SERVICES[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_SINGLESRVR_SERVICES[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_SINGLESRVR_SERVICES $value
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_SINGLESRVR_DOCKERS[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_SINGLESRVR_DOCKERS[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_SINGLESRVR_DOCKERS $value
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_SINGLESRVR_IP[${ntype}]}" != "" ]; then
|
||||||
|
IFS=,; var=(${NM_SINGLESRVR_IP[${ntype}]}); unset IFS
|
||||||
|
for value in "${var[@]}"; do
|
||||||
|
arr_insert ${ntype}_SINGLESRVR_IP $value
|
||||||
|
done
|
||||||
|
# else
|
||||||
|
# declare "${ntype}_SINGLESRVR_IP"=""
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "${NM_FOLDER}" == "" ] && NM_FOLDER=/opt/idssys/nodemgmt
|
||||||
|
[ "${NM_BACKUP_FOLDER}" == "" ] && NM_BACKUP_FOLDER=/opt/idssys/backups
|
||||||
|
NM_SCRIPT=${NM_FOLDER}/nodemgmt-scripts.sh
|
||||||
|
NM_TMPFOLDER=${NM_FOLDER}/.tmp
|
||||||
|
PW_TMPFOLDER=${NM_TMPFOLDER}/powerwall
|
||||||
|
[ "${NM_LOGFOLDER}" == "" ] && NM_LOGFOLDER=${NM_FOLDER}/logs
|
||||||
|
NM_LOGFILE=${NM_LOGFOLDER}/logfile
|
||||||
|
|
||||||
|
[ ! -d ${NM_TMPFOLDER} ] && mkdir ${NM_TMPFOLDER}
|
||||||
|
[ ! -d ${NM_LOGFOLDER} ] && mkdir ${NM_LOGFOLDER}
|
||||||
|
|
||||||
|
[ "${NM_RENOTIFY_TIMEOUT}" == "" ] && NM_RENOTIFY_TIMEOUT=3600
|
||||||
|
[ "${NM_ENABLE_RENOTIFY}" == "" ] && NM_ENABLE_RENOTIFY=1
|
||||||
|
|
||||||
|
NM_PDNS_WANDNS='wdns.scity.us'
|
||||||
|
NM_PDNS_LANDNS='ldns.scity.us'
|
||||||
|
|
||||||
|
|
||||||
|
if [ "${RNIP}" == "${NM_NODEMANAGER}" ]; then
|
||||||
|
IS_NODEMANAGER=1
|
||||||
|
# RUN_NODE_TYPE=NM;
|
||||||
|
# RUN_NODE_IP=${RNIP}
|
||||||
|
else
|
||||||
|
IS_NODEMANAGER=0
|
||||||
|
fi
|
||||||
|
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||||
|
# if [ "${1}" != "service" ] || ([ "${1}" == "service" ] && ([[ "${NM_SERVICES_CHECK[${NTYPE}]}" = *"${2}"* ]] || [ "${NTYPE}" == "${2^^}" ])); then
|
||||||
|
var=${NTYPE}_HOSTS[@]
|
||||||
|
RUN_NODE_TYPE=""
|
||||||
|
for nip in "${!var}"; do
|
||||||
|
# echo "${NTYPE} - $nip - ${RNIP} - ${RUN_NODE_TSIP}"
|
||||||
|
if [[ "${RNIP}" == *"${nip}"* ]]; then
|
||||||
|
RUN_NODE_TYPE=${NTYPE};
|
||||||
|
RUN_NODE_IP=${RNIP}
|
||||||
|
break 2
|
||||||
|
# elif [[ "${RUN_NODE_TSIP}" == *"${nip}"* ]]; then
|
||||||
|
# RUN_NODE_TYPE=${NTYPE};
|
||||||
|
# RUN_NODE_IP=${RNIP}
|
||||||
|
# break 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
# fi
|
||||||
|
done
|
||||||
|
# fi
|
||||||
|
# echo "HERE1: RUN_NODE_TYPE=$RUN_NODE_TYPE RUN_NODE_IP=$RUN_NODE_IP RUN_NODE_TSIP=$RUN_NODE_TSIP (RNIP=$RNIP TSI=$TSI)"
|
||||||
|
|
||||||
|
|
||||||
|
[ "${NM_REPL_NGINX_PATHS}" != "" ] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && NM_NGINXPATH=${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]} || NM_NGINXPATH=/etc/nginx
|
||||||
|
if [ "${NM_CERTPATHS}" != "" ]; then
|
||||||
|
if [ "${NM_CERTPATHS[${RUN_NODE_TYPE}]}" != "" ]; then
|
||||||
|
NM_CERTPATH=${NM_CERTPATHS[${RUN_NODE_TYPE}]}
|
||||||
|
NM_CERTNODE=${RUN_NODE_TYPE}
|
||||||
|
else
|
||||||
|
NM_CERTPATH=${NM_CERTPATHS[@]}
|
||||||
|
NM_CERTNODE=${!NM_CERTPATHS[@]}
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
NM_CERTPATH=/etc/letsencrypt
|
||||||
|
fi
|
||||||
|
[ "${NM_WWWPATHS}" != "" ] && [ "${NM_WWWPATHS[${RUN_NODE_TYPE}]}" != "" ] && NM_WWWPATH=${NM_WWWPATHS[${RUN_NODE_TYPE}]} || NM_WWWPATH=/var/www
|
||||||
|
|
||||||
declare -A NM_SRVCOPTS
|
declare -A NM_SRVCOPTS
|
||||||
|
NM_SRVCOPTS['status']='Status'
|
||||||
NM_SRVCOPTS['start']='Start'
|
NM_SRVCOPTS['start']='Start'
|
||||||
NM_SRVCOPTS['stop']='Stopp'
|
NM_SRVCOPTS['stop']='Stopp'
|
||||||
NM_SRVCOPTS['restart']='Restart'
|
NM_SRVCOPTS['restart']='Restart'
|
||||||
NM_SRVCOPTS['reload']='Reload'
|
NM_SRVCOPTS['reload']='Reload'
|
||||||
NM_SRVCOPTS['enable']='Enabl'
|
NM_SRVCOPTS['enable']='Enabl'
|
||||||
NM_SRVCOPTS['disable']='Disabl'
|
NM_SRVCOPTS['disable']='Disabl'
|
||||||
|
NM_SRVCOPTS['daemon-reload']='Daemon-Reload'
|
||||||
|
|
||||||
NM_SRVCOPT=(start stop restart reload enable disable)
|
declare -A NM_BACKUP_ITEMS
|
||||||
|
NM_BACKUP_ITEMS['nginx-settings']=${NM_NGINXPATH}
|
||||||
|
NM_BACKUP_ITEMS['nginx-logs']=/var/log/nginx
|
||||||
|
NM_BACKUP_ITEMS['letsencrypt-certs']=${NM_CERTPATH}
|
||||||
|
NM_BACKUP_ITEMS['webserver-files']=${NM_WWWPATH}
|
||||||
|
NM_BACKUP_ITEMS['haproxy']=/etc/haproxy
|
||||||
|
NM_BACKUP_ITEMS['keepalived']=/etc/keepalived
|
||||||
|
NM_BACKUP_ITEMS['fail2ban']=/etc/fail2ban
|
||||||
|
NM_BACKUP_ITEMS['nmg-conf']=${NM_FOLDER}/conf
|
||||||
|
# NM_BACKUP_ITEMS[nginx]=/
|
||||||
|
|
||||||
declare -A REPL_CHECKS
|
NM_MEDIA_SERVICES="radarr,radarr3d,sonarr,prowlarr,qbittorrent,bazarr,snap.tautulli.tautulli,snap.overseerr.daemon,jackett,lidarr,ombi"
|
||||||
REPL_CHECKS['nginx']='/etc/nginx'
|
|
||||||
REPL_CHECKS['ssl']='/etc/letsencrypt'
|
|
||||||
REPL_CHECKS['php']='/etc/php'
|
|
||||||
REPL_CHECKS['www']='/var/www'
|
|
||||||
REPL_CHECKS['git']='/var/lib/gitea'
|
|
||||||
REPL_CHECKS['gitssh']='/home/git'
|
|
||||||
|
|
||||||
REPL_CHECK=(nginx ssl php www git gitssh)
|
|
||||||
|
|
||||||
declare -A REPL_DESC
|
|
||||||
REPL_DESC['nginx']='NGINX Settings'
|
|
||||||
REPL_DESC['ssl']='SSL Certificates'
|
|
||||||
REPL_DESC['php']='PHP Settings'
|
|
||||||
REPL_DESC['www']='Webserver Files'
|
|
||||||
REPL_DESC['git']='Gitea System'
|
|
||||||
REPL_DESC['gitssh']='Gitea SSH Keys'
|
|
||||||
|
|
||||||
|
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||||
|
if [[ "${NM_DOCKERS_CHECK[${NTYPE}]}" == *"authelia"* ]]; then
|
||||||
|
NM_AUTHELIA_IP=${NM_SINGLESRVR_IP[${NTYPE}]}
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
GET-CHECKCERT-DOMAINS(){
|
||||||
|
declare -A CHECKCERT_DOMAINS
|
||||||
|
IFS=$'\n'
|
||||||
|
for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
|
||||||
|
HOST=${LINE%% *}
|
||||||
|
PORT=${LINE#* }
|
||||||
|
IFS=" "
|
||||||
|
CHECKCERT_DOMAINS[${HOST}]=${PORT}
|
||||||
|
done
|
||||||
|
unset IFS
|
||||||
|
}
|
||||||
|
|
||||||
DISP_HEADER(){
|
DISP_HEADER(){
|
||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
if [ "$1" = true ]; then
|
if [ "$1" = true ]; then
|
||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo
|
||||||
echo -e "${idsCL[LightGreen]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]} NodeMgmt - Node Monitoring & Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
||||||
DIVIDER . lightGreen
|
DIVIDER . lightGreen
|
||||||
if [ "$2" = true ]; then
|
echo
|
||||||
echo -e " Node hostname : ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME}${idsCL[Default]}${idsST[Reset]}"
|
|
||||||
if [ -z ${LOCAL_SERVICES+x} ]; then SERVICES=$( IFS=$','; echo "${NODE_SERVICES[*]}" )
|
|
||||||
else SERVICES=$( IFS=$','; echo "${LOCAL_SERVICES[*]}" )
|
|
||||||
fi
|
|
||||||
IFS=,; SERVICES2=(${SERVICES}); unset IFS
|
|
||||||
for srvc in "${SERVICES2[@]}"; do
|
|
||||||
c=0; cw=18; spc=''
|
|
||||||
spc1=${cw}-${#NM_SERVICES[${srvc}]}
|
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
|
||||||
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
|
|
||||||
if [ $(pgrep ${srvc} | wc -l) -gt "0" ]; then
|
|
||||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
|
||||||
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
DIVIDER
|
|
||||||
fi
|
|
||||||
echo ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DIVIDER(){
|
CHECK_HOST_QC(){
|
||||||
if [ -z ${2+x} ]; then clr='yellow'
|
|
||||||
else clr=$2
|
|
||||||
fi
|
|
||||||
echo -e "${idsCL[${clr~}]}-----------------------------------------------------------------------${idsCL[Default]}"
|
|
||||||
if [ "$1" = true ]; then
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
CERT-CHECK(){
|
|
||||||
TARGET="mysite.example.net";
|
|
||||||
RECIPIENT="hostmaster@mysite.example.net";
|
|
||||||
DAYS=7;
|
|
||||||
echo "checking if $TARGET expires in less than $DAYS days";
|
|
||||||
expirationdate=$(date -d "$(: | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null \
|
|
||||||
| openssl x509 -text \
|
|
||||||
| grep 'Not After' \
|
|
||||||
|awk '{print $4,$5,$7}')" '+%s');
|
|
||||||
in7days=$(($(date +%s) + (86400*$DAYS)));
|
|
||||||
if [ $in7days -gt $expirationdate ]; then
|
|
||||||
echo "KO - Certificate for $TARGET expires in less than $DAYS days, on $(date -d @$expirationdate '+%Y-%m-%d')" \
|
|
||||||
| mail -s "Certificate expiration warning for $TARGET" $RECIPIENT ;
|
|
||||||
else
|
|
||||||
echo "OK - Certificate expires on $expirationdate";
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
CHECK_HOST(){
|
|
||||||
if [ ! -z ${1+x} ]; then
|
if [ ! -z ${1+x} ]; then
|
||||||
ping -c 3 ${1} > /dev/null 2>&1
|
ping -qw 2 -c 1 ${1} > /dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
[ $? -ne 0 ] && echo false || echo true
|
||||||
echo false
|
|
||||||
else
|
|
||||||
echo true
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo false
|
echo false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SENDNOTICE(){
|
||||||
|
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
|
||||||
|
SN_TIT="$(echo -e "${1}" | sed "s/\%/\%25 /g")"
|
||||||
|
SN_MSG="$(echo -e "${2}" | sed "s/\%/\%25 /g")"
|
||||||
|
PUSH_TO_MOBILE "${SN_MSG}
|
||||||
|
|
||||||
|
[${NM_HOSTNAMES[${RNIP}]}] $(date)" "${SN_TIT}" ${3} &
|
||||||
|
fi
|
||||||
|
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date)" | mail -s "${1}" ${EMAIL_NOTICE}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
715
inc/certs.inc
Executable file
715
inc/certs.inc
Executable file
@@ -0,0 +1,715 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CERTAUTH="--webroot --webroot-path ${NM_CERTPATH}/letsencrypt-acme-challenge"
|
||||||
|
CERTSERVER="https://acme-v02.api.letsencrypt.org/directory"
|
||||||
|
CERTCHAIN="ISRG Root X1"
|
||||||
|
|
||||||
|
NEWCERT(){
|
||||||
|
CERTTEST=0; CERTEXPAND=""; CERTENC='ecdsa'; NONGINXRESTART=0
|
||||||
|
if [ "${3}" != "" ] && ([ "${3}" == "0" ] || [ "${3}" == "1" ]); then
|
||||||
|
NEW_CERT=${1}
|
||||||
|
NEWSITE=${2}
|
||||||
|
CERTTEST=${3}
|
||||||
|
else
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "${1}" in
|
||||||
|
-t|-test) CERTTEST=1;;
|
||||||
|
-newsite) NEWSITE=true;;
|
||||||
|
-expand) CERTEXPAND='--expand';;
|
||||||
|
-rsa) CERTENC='rsa';;
|
||||||
|
-nnr) NONGINXRESTART=1;;
|
||||||
|
-h|-help|--help)
|
||||||
|
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert {hostname}${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)"
|
||||||
|
printf "%-${width}s- %s\n" " -rsa" "(request rsa cert instead of default ecdsa)"
|
||||||
|
printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)"
|
||||||
|
echo -e "}\n"
|
||||||
|
exit 0;;
|
||||||
|
*) NEW_CERT=${1};;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if [ "${NEW_CERT}" == "" ]; then
|
||||||
|
until [ "${NEW_CERT}" != "" ]; do
|
||||||
|
echo -en "\n${idsCL[LightCyan]}Create certificate for what name (comma seperated for mutiple) : ${idsCL[Default]}"
|
||||||
|
read NEW_CERT
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [[ ${NEW_CERT} == *","* ]]; then
|
||||||
|
IFS=','; NEW_CERTS=(${NEW_CERT}); unset IFS
|
||||||
|
MAIN_CERT=${NEW_CERTS[0]}
|
||||||
|
else
|
||||||
|
MAIN_CERT=${NEW_CERT}
|
||||||
|
fi
|
||||||
|
if [ "${NEW_CERT}" != "" ]; then
|
||||||
|
if [ ${CERTTEST} -eq 1 ]; then
|
||||||
|
echo -e "${idsCL[LightYellow]}${idsST[Bold]}### REQUESTING CERT IN TEST MODE ###${idsST[Reset]}${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NM_PDNS_APIKEY}" != "" ] && [ "${NM_PDNS_RP_HOSTNAME}" != "" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Verifying WAN DNS record ... "
|
||||||
|
CERTDOMAIN=$(echo ${MAIN_CERT} |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//' | sed 's/ /./g')
|
||||||
|
if [ "$(curl -sH "Content-Type: application/json" -H "X-API-Key: ${NM_PDNS_APIKEY}" https://${NM_PDNS_WANDNS}/api/v1/servers/localhost/zones/${CERTDOMAIN} | jq | grep "${MAIN_CERT}")" != "" ]; then
|
||||||
|
#UPDATE
|
||||||
|
cDATA="{\"rrsets\": [ {\"name\": \"${MAIN_CERT}.\", \"type\": \"CNAME\", \"ttl\": 3600, \"changetype\": \"REPLACE\", \"records\": [ {\"content\": \"${NM_PDNS_RP_HOSTNAME}.\", \"disabled\": false, \"name\": \"${MAIN_CERT}.\", \"ttl\": 3600, \"type\": \"CNAME\"}]}]}"
|
||||||
|
curl -H 'Content-Type: application/json' -X PATCH --data "${cDATA}" -H "X-API-Key: ${NM_PDNS_APIKEY}" https://${NM_PDNS_WANDNS}/api/v1/servers/localhost/zones/${CERTDOMAIN}
|
||||||
|
else
|
||||||
|
#ADD
|
||||||
|
cDATA="{\"rrsets\": [ {\"name\": \"${MAIN_CERT}.\", \"type\": \"CNAME\", \"ttl\": 3600, \"changetype\": \"REPLACE\", \"records\": [ {\"content\": \"${NM_PDNS_RP_HOSTNAME}.\", \"disabled\": false } ] } ] }"
|
||||||
|
curl -H 'Content-Type: application/json' -X PATCH --data "${cDATA}" -H "X-API-Key: ${NM_PDNS_APIKEY}" https://${NM_PDNS_WANDNS}/api/v1/servers/localhost/zones/${CERTDOMAIN}
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
[ ${CERTTEST} -eq 1 ] && DRYRUN='--dry-run' || DRYRUN=''
|
||||||
|
${CERT_DAEMON} --authenticator dns-pdns --dns-pdns-credentials ${NM_FOLDER}/conf/pdns-credentials.conf certonly ${CERTEXPAND} ${DRYRUN} --key-type ${CERTENC} --server ${CERTSERVER} --preferred-chain "${CERTCHAIN}" -d ${NEW_CERT}
|
||||||
|
|
||||||
|
chown -R root:le ${NM_CERTPATH}
|
||||||
|
chmod -R 6775 ${NM_CERTPATH}
|
||||||
|
|
||||||
|
if [ -d ${NM_CERTPATH}/live/${MAIN_CERT} ]; then
|
||||||
|
echo -e "$(date +%Y-%m-%d-%H-%M-%S) - ${NEW_CERT}" >> ${NM_LOGFOLDER}/cert.requests
|
||||||
|
if [ -f ${NM_NGINXPATH}/sites-enabled/${MAIN_CERT}.conf ]; then
|
||||||
|
sed -i "s/#ssl_certificate/ssl_certificate/g" ${NM_NGINXPATH}/sites-available/${MAIN_CERT}.conf
|
||||||
|
sed -i "s/#listen 443/listen 443/g" ${NM_NGINXPATH}/sites-available/${MAIN_CERT}.conf
|
||||||
|
sed -i "s/#include conf.d\/include\/ssl-ciphers.conf/include conf.d\/include\/ssl-ciphers.conf/g" ${NM_NGINXPATH}/sites-available/${MAIN_CERT}.conf
|
||||||
|
sed -i "s/#include conf.d\/include\/force-ssl.conf/include conf.d\/include\/force-ssl.conf/g" ${NM_NGINXPATH}/sites-available/${MAIN_CERT}.conf
|
||||||
|
DIVIDER true
|
||||||
|
|
||||||
|
if [ ${NONGINXRESTART} -eq 0 ]; then
|
||||||
|
# if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
|
||||||
|
SERVICE_MGMT nginx restart
|
||||||
|
# else
|
||||||
|
# /bin/systemctl restart nginx
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[Green]}Certificate has been successfully created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"
|
||||||
|
elif [ ${CERTTEST} -eq 1 ]; then
|
||||||
|
echo -e "${idsCL[Yellow]}Ran in Test Mode, did not generate SSL for '${idsCL[LightCyan]}${NEW_CERT}${idsCL[Yellow]}'...${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[Red]}Certificate could not be created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Red]}'...${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
ENTER2CONTINUE
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "You havent entered a site address."
|
||||||
|
sleep 1
|
||||||
|
NEWCERT
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
DEL-SSL(){
|
||||||
|
if [ -z ${1+x} ]; then
|
||||||
|
until [ "${DEL_SSL}" != "" ]; do
|
||||||
|
echo -e -n "${idsCL[LightCyan]}Delete what SSL site address: ${idsCL[Default]}"
|
||||||
|
read DEL_SSL
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
else
|
||||||
|
DEL_SSL=${1}
|
||||||
|
fi
|
||||||
|
if [ ! -z ${DEL_SSL+x} ] && [ "${DEL_SSL}" != "" ]; then
|
||||||
|
if [ -d ${NM_CERTPATH}/live/${DEL_SSL} ]; then
|
||||||
|
echo -e "${idsCL[LightRed]}Deleting the SSL certificates for '${idsCL[Red]}${DEL_SSL}${idsCL[LightRed]}'...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo -en "${idsCL[LightRed]}Removing Files and Folders... ${idsCL[Default]}"
|
||||||
|
rm -rf ${NM_CERTPATH}/archive/${DEL_SSL} >/dev/null 2&>1
|
||||||
|
rm -rf ${NM_CERTPATH}/live/${DEL_SSL} >/dev/null 2&>1
|
||||||
|
rm -f ${NM_CERTPATH}/renewal/${DEL_SSL}.conf >/dev/null 2&>1
|
||||||
|
[ -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ] && sed -i "/${SUBJECT}/d" ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||||
|
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
|
||||||
|
echo -e "\n${idsCL[LightRed]}The SSL certificate has been fully removed from the node(s).${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "\n${idsCL[LightRed]}The SSL files folder for '${idsCL[Red]}${DEL_SSL}${idsCL[LightRed]}' could not be found.${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
CERTRENEW(){
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}Renewing Certificates...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
sleep 5
|
||||||
|
mv -f ${NM_LOGFOLDER}/cert-renewal1.lastrun ${NM_LOGFOLDER}/cert-renewal2.lastrun >/dev/null 2>&1
|
||||||
|
mv -f ${NM_LOGFOLDER}/cert-renewal.lastrun ${NM_LOGFOLDER}/cert-renewal1.lastrun >/dev/null 2>&1
|
||||||
|
|
||||||
|
# ${CERT_DAEMON} renew ${CERTAUTH} > ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
${CERT_DAEMON} --authenticator dns-pdns --dns-pdns-credentials ${NM_FOLDER}/conf/pdns-credentials.conf renew > ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
|
||||||
|
|
||||||
|
CONCAT_SSL
|
||||||
|
chown -R root:le ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
chmod -R 6775 ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
|
||||||
|
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
|
echo -e "${daterun}" >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
DIVIDER true
|
||||||
|
echo
|
||||||
|
|
||||||
|
SERVICE_MGMT nginx reload >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
|
|
||||||
|
echo -e "${idsCL[LightGreen]}The certificates have been renewed.${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
ENTER2CONTINUE
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
NIGHTLYRENEW(){
|
||||||
|
${CERT_DAEMON} --authenticator dns-pdns --dns-pdns-credentials ${NM_FOLDER}/conf/pdns-credentials.conf renew
|
||||||
|
CONCAT_SSL
|
||||||
|
chown -R root:le ${NM_CERTPATH}
|
||||||
|
chmod -R 6775 ${NM_CERTPATH}
|
||||||
|
SERVICE_MGMT nginx reload
|
||||||
|
}
|
||||||
|
|
||||||
|
CONCAT_SSL(){
|
||||||
|
rm -f /tmp/ssllist
|
||||||
|
for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done > /tmp/ssllist
|
||||||
|
for certdir in $(</tmp/ssllist); do
|
||||||
|
rm -f ${certdir}fullcert.pem
|
||||||
|
# cat ${certdir}privkey.pem ${certdir}fullchain.pem > ${certdir}fullcert.pem
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
LISTCERTS(){
|
||||||
|
EDIT=0; SEARCH=0
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "${1}" in
|
||||||
|
-e|-edit) EDIT=1;;
|
||||||
|
-s|-search) SEARCH=${2};;
|
||||||
|
-h | -help | --help)
|
||||||
|
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] certs${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
|
||||||
|
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to cert names containing {search})"
|
||||||
|
echo -e "}\n"
|
||||||
|
exit 0;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
declare -i cw; declare -i spc1; declare -i c; declare -A CHECKCERT_DOMAINS
|
||||||
|
if [ -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]; then
|
||||||
|
|
||||||
|
IFS=$'\n'
|
||||||
|
for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
|
||||||
|
HOST=${LINE%% *}
|
||||||
|
PORT=${LINE#* }
|
||||||
|
IFS=" "
|
||||||
|
CHECKCERT_DOMAINS[${HOST}]=${PORT}
|
||||||
|
done
|
||||||
|
unset IFS
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||||
|
# NCMD="${SSHCMD} root@${NM_HOSTS['LB'][0]}"
|
||||||
|
# #${NCMD} rm -f /tmp/ssllist
|
||||||
|
# #${NCMD} 'for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done' > /tmp/ssllist
|
||||||
|
# else
|
||||||
|
NCMD=''
|
||||||
|
rm -f /tmp/ssllist
|
||||||
|
# #for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done > /tmp/ssllist
|
||||||
|
# fi
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
fi
|
||||||
|
echo -e "\033[K${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
||||||
|
|
||||||
|
cw=34;
|
||||||
|
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
||||||
|
[ ${EDIT} -eq 1 ] && lenh="##) " || lenh=""
|
||||||
|
|
||||||
|
if [ "${SEARCH}" != "0" ]; then
|
||||||
|
ssldir=$(${NCMD} find ${NM_CERTPATH}/live/*${SEARCH,,}* -type d)
|
||||||
|
else
|
||||||
|
ssldir=$(${NCMD} find ${NM_CERTPATH}/live/* -type d)
|
||||||
|
fi
|
||||||
|
|
||||||
|
i=1
|
||||||
|
for certdir in ${ssldir[@]}; do
|
||||||
|
if (( i % 12 == 0 )) || [ $i = 1 ]; then
|
||||||
|
DIVIDER false yellow 120
|
||||||
|
echo -e "${lenh}${idsCL[Yellow]}Subject Name Monitored Expires Alternate Subject Names${idsCL[Default]}"
|
||||||
|
DIVIDER false yellow 120
|
||||||
|
else
|
||||||
|
DIVIDER false darkGray 120
|
||||||
|
fi
|
||||||
|
|
||||||
|
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
SUBJECTNAMES=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
|
CERTEXPIRE=$(date -d "$(: | ${NCMD} openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
|
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
|
# SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/\n/, /g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}, //g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/, ${SUBJECT}//g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g")
|
||||||
|
IFS=', '; SUBJECT_NAMES=(${SUBJECTNAMES}); unset IFS
|
||||||
|
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
|
||||||
|
|
||||||
|
c=0; spc=''
|
||||||
|
spc1=${cw}-${#SUBJECT}
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
if [ $CERTEXPIRE -le $DUEIN ]; then
|
||||||
|
date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||||
|
SENDNOTICE "SSL Expiring" "${SUBJECT} expires on $(date -d @${CERTEXPIRE} '+%m-%d-%Y')" 1
|
||||||
|
else
|
||||||
|
date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "${CHECKCERT_DOMAINS[${SUBJECT}]}" != "" ] && monitored="${idsCL[Green]}Yes${idsCL[Default]}" || monitored='No '
|
||||||
|
|
||||||
|
[ ${i} -lt 10 ] && ii=" ${i}" || ii=${i}
|
||||||
|
[ ${EDIT} -eq 1 ] && len="${ii}) " || len=""
|
||||||
|
|
||||||
|
if [ ${#SUBJECT_NAMES[@]} -lt 4 ]; then
|
||||||
|
echo -e "${len}${idsCL[Cyan]}${SUBJECT}${idsCL[Default]}${spc}${monitored} ${date} ${SUBJECTNAMES}"
|
||||||
|
elif [ ${#SUBJECT_NAMES[@]} -lt 7 ]; then
|
||||||
|
echo -e "${len}${idsCL[Cyan]}${SUBJECT}${idsCL[Default]}${spc}${monitored} ${date} ${SUBJECT_NAMES[0]}, ${SUBJECT_NAMES[1]}, ${SUBJECT_NAMES[2]}"
|
||||||
|
echo -n "${spc2} "
|
||||||
|
for sn in {3..5}; do
|
||||||
|
if [ "${SUBJECT_NAMES[${sn}]}" != "" ]; then
|
||||||
|
[ ${sn} -ne 3 ] && echo -n ", "
|
||||||
|
echo -n ${SUBJECT_NAMES[${sn}]}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
CERTLIST[${i}]=${SUBJECT}
|
||||||
|
i=`expr $i + 1`
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ${EDIT} -eq 1 ]; then
|
||||||
|
echo
|
||||||
|
DIVIDER . yellow ${dl}
|
||||||
|
function exitspacing {
|
||||||
|
echo -e "\n\033[K\n\033[K"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
trap exitspacing EXIT
|
||||||
|
|
||||||
|
while [ "${editc^}" != "E" ]; do
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K (${idsCL[Green]}A${idsCL[Default]})dd New Cert, (${idsCL[Green]}R${idsCL[Default]})eload Certs, (${idsCL[Yellow]}E${idsCL[Default]})xit"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[7A"
|
||||||
|
echo -en "\033[K${idsCL[LightCyan]}Enter the cert number you want to edit: ${idsCL[Default]}"
|
||||||
|
read certid
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ "${certid^}" == "E" ]; then
|
||||||
|
echo -e "\033[K"
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${certid^}" == "A" ]; then
|
||||||
|
echo -en "\033[1A\033[K\r"
|
||||||
|
NEWCERT
|
||||||
|
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${certid^}" == "R" ]; then
|
||||||
|
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
|
||||||
|
cert=${CERTLIST[${certid}]}
|
||||||
|
certdir=${NM_CERTPATH}/live/${cert}
|
||||||
|
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
SUBJECTNAMES=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
|
CERTEXPIRE=$(date -d "$(: | ${NCMD} openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
|
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
|
# SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/\n/, /g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}, //g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/, ${SUBJECT}//g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g")
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//, /,}
|
||||||
|
oldSUBJECTNAMES=${SUBJECTNAMES}
|
||||||
|
[ "${CHECKCERT_DOMAINS[${SUBJECT}]}" != "" ] && monitored="Yes" || monitored='-'
|
||||||
|
editc=0
|
||||||
|
until [ "${editc^}" = "C" ]; do
|
||||||
|
echo -e "\033[K ${idsCL[White]} Expires: ${idsCL[Cyan]}$(date -d @${CERTEXPIRE} '+%B %d, %Y')"
|
||||||
|
echo -e "\033[K ${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${SUBJECT}${idsST[Reset]}"
|
||||||
|
echo
|
||||||
|
echo -e "\033[K ${idsCL[Green]}1) ${idsCL[White]}Cert Alternate Names: ${idsCL[Cyan]}${SUBJECTNAMES//,/, }"
|
||||||
|
echo -e "\033[K ${idsCL[Green]}2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${monitored}"
|
||||||
|
if [ "${editc}" != "s" ]; then
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K (${idsCL[Green]}S${idsCL[Default]})ave, (${idsCL[Red]}D${idsCL[Default]})elete, (${idsCL[Yellow]}C${idsCL[Default]})ancel, (${idsCL[Yellow]}E${idsCL[Default]})xit"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[7A"
|
||||||
|
|
||||||
|
[ "${con}" != "" ] && echo -en "\n"
|
||||||
|
echo -en "\033[K\n\033[K\r${idsCL[Green]}Enter the item number to edit: ${idsCL[Default]}"
|
||||||
|
read -n 1 editc
|
||||||
|
|
||||||
|
case "${editc}" in
|
||||||
|
1) echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[KEnter new Alternate Names (comma-delimited): "
|
||||||
|
read -i "${SUBJECTNAMES}" -e SUBJECTNAMES
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//, /,}
|
||||||
|
echo -e "\033[6A"; for (( c=1; c<=6; c++ )); do echo -e "\033[K"; done; echo -e "\033[6A"
|
||||||
|
;;
|
||||||
|
2) [ "${monitored}" == "-" ] && monitored='Yes' || monitored='-';;
|
||||||
|
[Dd])
|
||||||
|
echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[K${idsCL[LightCyan]}Are you sure you wish to delete the cert (y/N): ${idsCL[Default]}"
|
||||||
|
read -n 1 delconfirm
|
||||||
|
case "${delconfirm}" in
|
||||||
|
[Yy])
|
||||||
|
echo -en "\n\n${idsCL[LightCyan]}Removing certificate ... "
|
||||||
|
DEL-SSL ${cert} >/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done\n${idsCL[Default]}"
|
||||||
|
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[ "${delconfirm}" !="" ] && echo
|
||||||
|
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
[Ee])
|
||||||
|
echo -e "\033[K"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
[Cc])
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[7A"; for (( c=1; c<=7; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[7A"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
[ "${editc}" == "" ] && echo -e "\033[8A" || echo -e "\033[7A"
|
||||||
|
|
||||||
|
else
|
||||||
|
for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[6A"
|
||||||
|
echo
|
||||||
|
echo -en "\033[K${idsCL[LightCyan]}Confirm changes (Y/n): ${idsCL[Default]}"
|
||||||
|
read -n 1 confirm
|
||||||
|
case "${confirm}" in
|
||||||
|
[Nn])
|
||||||
|
editc=C
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[12A"; for (( c=1; c<=12; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[13A"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[ "${confirm}" != "" ] && echo -en "\n"
|
||||||
|
echo -en "\033[1A\033[K\r${idsCL[LightCyan]}Configuring changes ... ${idsCL[Default]}"
|
||||||
|
|
||||||
|
[ "${SUBJECTNAMES}" != "${oldSUBJECTNAMES}" ] && NEWCERT -expand -newsite ${SUBJECT},${SUBJECTNAMES} >/dev/null 2&>1
|
||||||
|
|
||||||
|
if [ "${monitored^^}" == "YES" ]; then
|
||||||
|
if [ "$(grep ${SUBJECT} ${NM_FOLDER}/conf/ssl-domain-checks.conf)" == "" ]; then
|
||||||
|
[ ! -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ] && touch ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||||
|
echo "${SUBJECT} 443" >> ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||||
|
checkcerts_sorted=$(sort <<< "$(cat ${NM_FOLDER}/conf/ssl-domain-checks.conf)")
|
||||||
|
rm -f ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||||
|
echo "${checkcerts_sorted}" > ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||||
|
[ ${IS_NODEMANAGER} -eq 0 ] && scp -q ${NM_FOLDER}/conf/ssl-domain-checks.conf root@${NM_NODEMANAGER}:${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||||
|
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
sed -i "/${SUBJECT}/d" ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||||
|
[ ${IS_NODEMANAGER} -eq 0 ] && scp -q ${NM_FOLDER}/conf/ssl-domain-checks.conf root@${NM_NODEMANAGER}:${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
echo -en "\033[K\r${idsCL[LightCyan]}Continue or Exit (C/e): ${idsCL[Default]}"
|
||||||
|
read -n1 con
|
||||||
|
case "${con}" in
|
||||||
|
[Ee])
|
||||||
|
# echo -e "\n\033[K\n\033[K"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
editc=C
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[13A"; for (( c=1; c<=13; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[15A"
|
||||||
|
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
else #no cert
|
||||||
|
echo -e "\033[3A"; for (( c=1; c<=3; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[4A"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
ENTER2CONTINUE
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
LISTCERTS_NPM(){
|
||||||
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
|
declare -A CHECKCERT_DOMAINS
|
||||||
|
IFS=$'\n'
|
||||||
|
for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
|
||||||
|
HOST=${LINE%% *}
|
||||||
|
PORT=${LINE#* }
|
||||||
|
IFS=" "
|
||||||
|
CHECKCERT_DOMAINS[${HOST}]=${PORT}
|
||||||
|
done
|
||||||
|
unset IFS
|
||||||
|
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||||
|
NCMD="${SSHCMD} root@${MYSQL_HOSTS[0]}"
|
||||||
|
${NCMD} rm -f /tmp/ssllist
|
||||||
|
${NCMD} 'for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done' > /tmp/ssllist
|
||||||
|
else
|
||||||
|
NCMD=''
|
||||||
|
rm -f /tmp/ssllist
|
||||||
|
for certdir in ${NM_CERTPATH}/live/*/ ; do echo $certdir; done > /tmp/ssllist
|
||||||
|
fi
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
||||||
|
DIVIDER false yellow 120
|
||||||
|
echo -e "Subject Name Monitored Expires Alternate Subject Names"
|
||||||
|
DIVIDER false yellow 120
|
||||||
|
|
||||||
|
cw=30;
|
||||||
|
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
||||||
|
for certdir in $(</tmp/ssllist); do
|
||||||
|
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
SUBJECTNAMES=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
|
CERTEXPIRE=$(date -d "$(: | ${NCMD} openssl x509 -in ${certdir}cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
|
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
|
# SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/\n/, /g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}, //g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/, ${SUBJECT}//g")
|
||||||
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g")
|
||||||
|
IFS=', '; SUBJECT_NAMES=(${SUBJECTNAMES}); unset IFS
|
||||||
|
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
|
||||||
|
|
||||||
|
c=0; spc=''
|
||||||
|
spc1=${cw}-${#SUBJECT}
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
||||||
|
date="${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${CHECKCERT_DOMAINS[${SUBJECT}]}" = "" ]; then
|
||||||
|
monitored='No '
|
||||||
|
else
|
||||||
|
monitored="${idsCL[Green]}Yes${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
if [ ${#SUBJECT_NAMES[@]} -lt 4 ]; then
|
||||||
|
echo -e "${idsCL[Cyan]}${SUBJECT}${idsCL[Default]}${spc}${monitored} ${date} ${SUBJECTNAMES}"
|
||||||
|
elif [ ${#SUBJECT_NAMES[@]} -lt 7 ]; then
|
||||||
|
echo -e "${idsCL[Cyan]}${SUBJECT}${idsCL[Default]}${spc}${monitored} ${date} ${SUBJECT_NAMES[0]}, ${SUBJECT_NAMES[1]}, ${SUBJECT_NAMES[2]}"
|
||||||
|
echo -e "${spc2} ${SUBJECT_NAMES[3]}, ${SUBJECT_NAMES[4]}, ${SUBJECT_NAMES[5]}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
DIVIDER false darkGray 120
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
ENTER2CONTINUE
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
COPYCERTS_NPM(){
|
||||||
|
ssldir='${NM_CERTPATH}/ssl'
|
||||||
|
|
||||||
|
if [ "${1}" = "reset" ]; then
|
||||||
|
echo "Resetting ... Deleting all SSL symlink folders"
|
||||||
|
ssldirs=$(find ${ssldir} -type l)
|
||||||
|
for certdir in ${ssldirs[@]}; do
|
||||||
|
rm ${certdir}
|
||||||
|
done
|
||||||
|
else
|
||||||
|
baddirs=$(find $ssldir -type l ! -exec test -e {} \; -print)
|
||||||
|
for od in ${baddirs[@]}; do
|
||||||
|
echo "Removing bad symlink folder ... ${od}"
|
||||||
|
rm -f ${od}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
DIVIDER true
|
||||||
|
fi
|
||||||
|
|
||||||
|
ssls=$(find ${NM_CERTPATH}/live/* -type d)
|
||||||
|
for certdir in ${ssls[@]}; do
|
||||||
|
SUBJECT=$(openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
if [ ! -L ${ssldir}/${SUBJECT} ]; then
|
||||||
|
echo "${SUBJECT} ... creating"
|
||||||
|
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z ${NMG_ACTION} ] || [ "${NMG_ACTION}" = "gui" ]; then
|
||||||
|
echo
|
||||||
|
DIVIDER true
|
||||||
|
ENTER2CONTINUE
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
CHECK_NPMCERTS(){
|
||||||
|
ssls=$(find ${NM_CERTPATH}/live/* -type d)
|
||||||
|
|
||||||
|
for certdir in ${ssls[@]}; do
|
||||||
|
SUBJECT=$(openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
ENDDATE=$(openssl x509 -in ${certdir}/cert.pem -noout -enddate | awk -F '=' '{print $2}')
|
||||||
|
DAYS=$(dateutils.ddiff today "$(date --date="${ENDDATE}" '+%F')" -f '%d')
|
||||||
|
|
||||||
|
c=0; cw=35; spc=''
|
||||||
|
spc1=`expr ${cw} - ${#SUBJECT}`
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
[ ${DAYS} -lt 0 ] && spc=${spc::-1}
|
||||||
|
|
||||||
|
if [ ${DAYS} -lt 24 ]; then
|
||||||
|
echo "${SUBJECT}:${spc}${DAYS} days remaining"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CHECK-CERTS(){
|
||||||
|
if [ "${1}" == "check" ]; then
|
||||||
|
rm -f ${NM_LOGFOLDER}/ssl-cert-check.lastrun
|
||||||
|
${NM_FOLDER}/ssl-cert-check/ssl-cert-check -f ${NM_FOLDER}/conf/ssl-domain-checks.conf > ${NM_LOGFOLDER}/ssl-cert-check.lastrun
|
||||||
|
SSLLOG="$(cat ${NM_LOGFOLDER}/ssl-cert-check.lastrun)"
|
||||||
|
SENDNOTICE "SSL Certs Check" "SSL Certs Check\n$SSLLOG"
|
||||||
|
else
|
||||||
|
IFS=$'\n'
|
||||||
|
for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
|
||||||
|
HOST=${LINE%% *}
|
||||||
|
PORT=${LINE#* }
|
||||||
|
CERTINFO=$(${NM_FOLDER}/ssl-cert-check/ssl-cert-check -p ${PORT} -s ${HOST} -N)
|
||||||
|
CERTVALID=$(echo "${CERTINFO}" | grep valid | awk -F' valid' '{print $1}')
|
||||||
|
CERTVALID=${CERTVALID: -1}
|
||||||
|
CERTDAYS=${CERTINFO#*days=}
|
||||||
|
if [ "${CERTVALID}" == "0" ] || [ "${CERTVALID}" == "E" ] || [ "$(echo ${CERTINFO} | grep unreadable)" != "" ]; then
|
||||||
|
if [ "$(CHECK_HOST ${HOST})" != "false" ]; then
|
||||||
|
printf "%-30s: %s\n" "${HOST}" "SSL is not valid"
|
||||||
|
SENDNOTICE "SSL Not Valid" "The (${HOST}) SSL is not valid" 1
|
||||||
|
else
|
||||||
|
printf "%-30s: %s\n" "${HOST}" "Host is Offline"
|
||||||
|
fi
|
||||||
|
elif [ ${CERTDAYS} -lt 1 ]; then
|
||||||
|
printf "%-30s: %s\n" "${HOST}" "SSL Expired! (${CERTDAYS} days)"
|
||||||
|
SENDNOTICE "SSL Expired" "The (${HOST}) SSL is expired!! (${CERTDAYS} days)" 2
|
||||||
|
|
||||||
|
elif [ ${CERTDAYS} -lt 15 ]; then
|
||||||
|
printf "%-30s: %s\n" "${HOST}" "SSL is expiring in $CERTDAYS days!"
|
||||||
|
SENDNOTICE "SSL Expiring" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 1
|
||||||
|
|
||||||
|
else
|
||||||
|
printf "%-30s: %s\n" "${HOST}" "SSL is valid for ${CERTDAYS} days"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset IFS
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
VCENTER-SSL(){
|
||||||
|
if [ "${NM_VC_HOSTNAME}" != "" ] && [ "${NM_VC_USER}" != "" ] && [ "${NM_VC_PASS}" != "" ] && [ "${NM_PDNS_APIKEY}" != "" ]; then
|
||||||
|
pwsh ${NM_FOLDER}/inc/vCenter-SSL.ps1
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
COPYCERTS(){
|
||||||
|
if [ -f ${NM_FOLDER}/conf/copycerts.sh.inc ] && [ "${NM_COPYCERTS_HOST}" ] && [ "${NM_COPYCERTS_PATH}" ]; then
|
||||||
|
source ${NM_FOLDER}/conf/copycerts.sh.inc
|
||||||
|
|
||||||
|
if [ "${COPYCERT}" ] && [ "${CERTFOLDER}" ]; then
|
||||||
|
|
||||||
|
arr COPYCERTS
|
||||||
|
arr CERTFOLDERS
|
||||||
|
IFS=,; var=(${COPYCERT}); unset IFS
|
||||||
|
for value in "${var[@]}"; do arr_insert COPYCERTS ${value}; done
|
||||||
|
IFS=,; var=(${CERTFOLDER}); unset IFS
|
||||||
|
for value in "${var[@]}"; do arr_insert CERTFOLDERS ${value}; done
|
||||||
|
|
||||||
|
i=0; RUN_POST_COMMANDS=false
|
||||||
|
for CERTSITE in "${COPYCERTS[@]}"; do
|
||||||
|
c=0; spc=''; until [ $c = $(expr 35 - ${#CERTSITE}) ]; do spc="${spc} "; c=$(expr ${c} + 1); done
|
||||||
|
echo -en "${idsCL[LightCyan]}Updating ${idsCL[Green]}${CERTSITE}${spc}${idsCL[LightCyan]}: "
|
||||||
|
COPYTO=${CERTFOLDERS[${i}]}
|
||||||
|
[ ! -d ${COPYTO} ] && mkdir -p ${COPYTO}
|
||||||
|
scp le@${NM_COPYCERTS_HOST}:${NM_COPYCERTS_PATH}/${CERTSITE}/privkey.pem ${COPYTO}/privkey.pem >/dev/null 2>&1
|
||||||
|
if ! /usr/bin/md5sum -c ${COPYTO}/privkey.pem.md5 >/dev/null 2>&1 || [ "${1^^}" == "FORCE" ]; then
|
||||||
|
scp le@${NM_COPYCERTS_HOST}:${NM_COPYCERTS_PATH}/${CERTSITE}/* ${COPYTO}/ >/dev/null 2>&1
|
||||||
|
rm -f ${COPYTO}/privkey.pem.md5 >/dev/null 2>&1
|
||||||
|
[ -f ${COPYTO}/privkey.pem ] && md5sum ${COPYTO}/privkey.pem > ${COPYTO}/privkey.pem.md5
|
||||||
|
RUN_POST_COMMANDS=true
|
||||||
|
touch ${NM_LOGFOLDER}/copycerts.lastrun
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[LightCyan]}No update needed${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
((i++))
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
if [ ${RUN_POST_COMMANDS} = true ]; then
|
||||||
|
echo -e "${idsCL[LightCyan]}Running post commands ...${idsCL[Default]}"
|
||||||
|
COPYCERTS_POST_COMMANDS
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}Config file not complete, missing at least \${COPYCERT} and/or \${CERTFOLDER} variables${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}No ${NM_FOLDER}/conf/copycerts.sh.inc config file found, or missing \${NM_COPYCERTS_HOST} and/or \${NM_COPYCERTS_PATH} variables${idsCL[Default]}\n"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
518
inc/services.inc
Executable file
518
inc/services.inc
Executable file
@@ -0,0 +1,518 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SINGLE_SERVER_SERVICE_CHECK(){
|
||||||
|
if [ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
||||||
|
([ "${2^^}" == "START" ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.check)) -ge 1200 ]) && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
||||||
|
fi
|
||||||
|
if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check ]; then
|
||||||
|
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
||||||
|
|
||||||
|
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
||||||
|
dockerstocheck=${1^^}_SINGLESRVR_DOCKERS[@]
|
||||||
|
hosts=${1^^}_HOSTS[@]
|
||||||
|
|
||||||
|
[ "${2^^}" == "START" ] && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary
|
||||||
|
|
||||||
|
|
||||||
|
# rm -f ${NM_TMPFOLDER}/.singleserver*
|
||||||
|
|
||||||
|
if [ ! -f ${NM_TMPFOLDER}/.skip ] && ([[ "$(declare -p ${1^^}_SINGLESRVR_SERVICES)" =~ "declare -a" ]] || [[ "$(declare -p ${1^^}_SINGLESRVR_DOCKERS)" =~ "declare -a" ]] || [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]); then
|
||||||
|
if [ "${1^^}" == "LPD" ] || [ "${1^^}" == "DNS" ] || [ "${1^^}" == "LDNS" ]; then
|
||||||
|
dnstest=$(dig +short +tries=3 +time=3 www.google.com @127.0.0.1)
|
||||||
|
if [ "${dnstest}" == "" ] || [[ "${dnstest}" == *";;"* ]]; then
|
||||||
|
SKIP_SERVER_CHECKS on >/dev/null 2>&1
|
||||||
|
completed=false; scanstart=$(date +%s)
|
||||||
|
sleep 4s
|
||||||
|
until [ "${completed}" == "true" ]; do
|
||||||
|
dnstest=$(dig +short +tries=3 +time=3 www.google.com @127.0.0.1)
|
||||||
|
if [ "${dnstest}" != "" ] && [[ "${dnstest}" != *";;"* ]]; then
|
||||||
|
completed=true
|
||||||
|
break
|
||||||
|
|
||||||
|
elif [ $(($(date +%s)-scanstart)) -ge 180 ]; then
|
||||||
|
SENDNOTICE "${NM_HOSTNAMES[${RUN_NODE_IP}]} DNS Startup Failure 1" "${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP})
|
||||||
|
Server did not start serving DNS requests within 3mins, starting Pi-Hole repair...." 1
|
||||||
|
/usr/local/bin/pihole -r
|
||||||
|
|
||||||
|
elif [ $(($(date +%s)-scanstart)) -ge 600 ]; then
|
||||||
|
SENDNOTICE "${NM_HOSTNAMES[${RUN_NODE_IP}]} DNS Startup Failure 2" "${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP})
|
||||||
|
Server did not start serving DNS requests within 10mins you moron...." 1
|
||||||
|
killall bash
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sleep 15s
|
||||||
|
done
|
||||||
|
/usr/bin/docker restart powerdns_admin >/dev/null 2>&1
|
||||||
|
SKIP_SERVER_CHECKS off >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [[ $(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) == *${NM_SINGLESRVR_IP[${1^^}]}* ]]; then
|
||||||
|
# if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.primary)) -ge 300 ]; then
|
||||||
|
# if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ]; then
|
||||||
|
if [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ]; then
|
||||||
|
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.primary
|
||||||
|
SENDNOTICE "'${NM_NODETYPES[${1^^}]}' Node Switch" "Starting SingleServer for '${NM_NODETYPES[${1^^}]}' on ${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP}), stopping on other Nodes"
|
||||||
|
fi
|
||||||
|
echo "$(date +%Y-%m-%d-%H-%M-%S) - ${NM_HOSTNAMES[${RUN_NODE_IP}]} - Starting SingleServer for '${NM_NODETYPES[${1^^}]}' on ${NM_HOSTNAMES[${RUN_NODE_IP}]} (${RUN_NODE_IP}), stopping on the other Nodes ..." >> ${NM_LOGFILE}
|
||||||
|
for stc in "${!servicestocheck}"; do
|
||||||
|
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.service pdnsadmin.socket"
|
||||||
|
for nip in "${!hosts}"; do
|
||||||
|
if [[ "${RUN_NODE_IP}" != *"${nip}"* ]] && [ "$(CHECK_HOST ${nip})" != "false" ]; then
|
||||||
|
${SSHCMD} root@${nip} 'systemctl is-active --quiet '${stc}' && /bin/systemctl stop '${stc} >/dev/null 2>&1
|
||||||
|
${SSHCMD} root@${nip} '[ -f '${NM_TMPFOLDER}'/.singleserver.'${1^^}'.primary ] && rm -f '${NM_TMPFOLDER}'/.singleserver.'${1^^}'.primary' >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
#### HERE
|
||||||
|
|
||||||
|
for docker in "${!dockerstocheck}"; do
|
||||||
|
for nip in "${!hosts}"; do
|
||||||
|
if [[ "${RUN_NODE_IP}" != *"${nip}"* ]] && [ "$(CHECK_HOST ${nip})" != "false" ]; then
|
||||||
|
${SSHCMD} root@${nip} '[ "$(docker ps -a -q -f name='${docker}')" ] && docker stop '${docker} >/dev/null 2>&1
|
||||||
|
[ "${docker}" == "authelia" ] && ${SSHCMD} root@${nip} '[ "$(docker ps -a -q -f name=auth_redis)" ] && docker stop auth_redis' >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
sleep 20s
|
||||||
|
# else
|
||||||
|
touch ${NM_TMPFOLDER}/.singleserver.${1^^}.primary
|
||||||
|
# fi
|
||||||
|
|
||||||
|
for stc in "${!servicestocheck}"; do
|
||||||
|
if ! systemctl is-active --quiet ${stc}; then
|
||||||
|
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.service pdnsadmin.socket"
|
||||||
|
/bin/systemctl start ${stc} >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for docker in "${!dockerstocheck}"; do
|
||||||
|
if [ ! "$(docker ps -a -q -f name=${docker})" ]; then
|
||||||
|
[ "${docker}" == "authelia" ] && docker start auth_redis && sleep 2s >/dev/null 2>&1
|
||||||
|
docker start ${docker} >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary
|
||||||
|
echo "$(date +%Y-%m-%d-%H-%M-%S) - ${NM_HOSTNAMES[${RUN_NODE_IP}]} - ... Done" >> ${NM_LOGFILE}
|
||||||
|
# fi
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
# if [ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ] || [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary)) -ge 300 ]; then
|
||||||
|
[ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] && touch ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary
|
||||||
|
for stc in "${!servicestocheck}"; do
|
||||||
|
if [ $(systemctl is-active --quiet ${stc}) ]; then
|
||||||
|
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service"
|
||||||
|
/bin/systemctl stop ${stc} & >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for docker in "${!dockerstocheck}"; do
|
||||||
|
[ "$(docker ps -a -q -f name=${docker})" ] && docker stop ${docker} & >/dev/null 2>&1
|
||||||
|
done
|
||||||
|
[ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ] && rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "${1^^}" == "WEB" ] && [ "$(systemctl is-active nginx)" != "active" ] && ${NM_SCRIPT} service web restart ${RUN_NODE_IP}
|
||||||
|
|
||||||
|
elif [ "${2^^}" == "START" ] && [ -f ${NM_TMPFOLDER}/.skip ]; then
|
||||||
|
systemctl stop keepalived >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
rm -f ${NM_TMPFOLDER}/.singleserver.${1^^}.check
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
SERVICE_MGMT(){
|
||||||
|
declare -A SERVICE
|
||||||
|
QUIET=0
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "${1}" in
|
||||||
|
-s|-service) SERVICE['service']=${2,,};;
|
||||||
|
-n|-node) SERVICE['node']=${2^^};;
|
||||||
|
-nt|-nodetype) SERVICE['nodetype']=${2^^};;
|
||||||
|
-a|-action) SERVICE['action']=${2,,};;
|
||||||
|
-q|-quiet) QUIET=1;;
|
||||||
|
-h|-help)
|
||||||
|
echo -e "\nUsage: ${idsCL[Yellow]}[nodemgmt or nmg] ${idsCL[LightYellow]}service${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -s|-service {service}" "Name of service to manage"
|
||||||
|
printf "%-${width}s- %s\n" " -n|-node {node-lan-ip}" "Node to run on"
|
||||||
|
printf "%-${width}s- %s\n" " -nt|-nodetype {nodetype}" "NodeType to run on, or all. Defaults to local nodetype"
|
||||||
|
printf "%-${width}s- %s\n" " -a|-action {action}" "Action to perform; start, stop, restart etc"
|
||||||
|
printf "%-${width}s- %s\n" " -q|-quiet" "Do not output, typically used from cron jobs"
|
||||||
|
echo -e "}\n"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if [ "${NM_SERVICE_DESC[${1}]}" != "" ]; then
|
||||||
|
SERVICE['service']=${1}
|
||||||
|
|
||||||
|
elif [ "${NM_SRVCOPTS[${1}]}" != "" ]; then
|
||||||
|
SERVICE['action']=${1}
|
||||||
|
|
||||||
|
elif [ "${NM_HOSTNAMES[${1}]}" != "" ]; then
|
||||||
|
SERVICE['node']=${1}
|
||||||
|
|
||||||
|
elif [ "${1}" == "q" ]; then
|
||||||
|
QUIET=1
|
||||||
|
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
# echo "SERVICE=${SERVICE['service']}"
|
||||||
|
# echo "SERVICE DESC=${NM_SERVICE_DESC[${SERVICE['service']}]}"
|
||||||
|
# echo "ACTION=${SERVICE['action']}"
|
||||||
|
# echo "NODE=${SERVICE['node']}"
|
||||||
|
# echo "NODETYPE=${SERVICE['nodetype']}"
|
||||||
|
# echo "QUIET=${QUIET}"
|
||||||
|
|
||||||
|
if [ ! "${NM_SERVICE_DESC[${SERVICE['service']}]}" ] && [ "${NM_SERVICE_DESC[${SERVICE['service']}]}" != "ALL" ]; then
|
||||||
|
echo -e "${idsCL[Red]}"${SERVICE['service']}" is an unknown Service.${idsCL[Default]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# [ "${SERVICE['nodetype']}" == "" ] && SERVICE['nodetype']=
|
||||||
|
|
||||||
|
if [ "${SERVICE['nodetype']}" == "ALL" ]; then
|
||||||
|
# NT_HOSTS=ALL_HOSTS[@]
|
||||||
|
NT_HOST=RNIP
|
||||||
|
NTS=(${NM_NODE_TYPES[*]})
|
||||||
|
|
||||||
|
elif [ "${SERVICE['nodetype']}" != "" ]; then
|
||||||
|
if [ "${NM_HOSTS[${SERVICE['nodetype']}]}" != "" ]; then
|
||||||
|
NT_HOSTS=${SERVICE['nodetype']}_HOSTS[@]
|
||||||
|
NT_HOST=${SERVICE['nodetype']}_HOSTS[0]
|
||||||
|
NTS=("${SERVICE['nodetype']}");
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}"${SERVICE['nodetype']}" is an unknown NodeType.${idsCL[Default]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ "${RUN_NODE_TYPE}" != "" ]; then
|
||||||
|
NT_HOSTS=${RUN_NODE_TYPE}_HOSTS[@]
|
||||||
|
NT_HOST=${RUN_NODE_TYPE}_HOSTS[0]
|
||||||
|
NTS=("${RUN_NODE_TYPE}");
|
||||||
|
|
||||||
|
# else
|
||||||
|
# NTS=(${NM_NODE_TYPES[*]})
|
||||||
|
fi
|
||||||
|
|
||||||
|
#var=NC_HOSTS[@]
|
||||||
|
|
||||||
|
if [ "${SERVICE['service']}" = "glusterd" ]; then
|
||||||
|
|
||||||
|
for nip in "${GL_HOSTS[@]}"; do
|
||||||
|
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
|
||||||
|
nip='localhost '
|
||||||
|
NCMD=''
|
||||||
|
else
|
||||||
|
NCMD="${SSHCMD} root@${nip}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ ${QUIET} -eq 0 ] && echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on '$nip'... ${idsCL[Default]}"
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ]; then
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
if [[ "enable,disable" = *"${SERVICE['action']}"* ]] || [ "${SERVICE['service']}" = "daemon-reload" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [ "$(${NCMD} systemctl is-active ${SERVICE['service']} | tr -d $'\r')" = "active" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [ "${SERVICE['action']}" = "stop" ]; then
|
||||||
|
echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
elif [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${SERVICE['action']}" = "start" ] || [ "${SERVICE['action']}" = "restart" ]; then
|
||||||
|
|
||||||
|
echo
|
||||||
|
sleep 5s
|
||||||
|
|
||||||
|
for nip in "${GL_HOSTS[@]}"; do
|
||||||
|
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
|
||||||
|
nip='localhost '
|
||||||
|
NCMD=''
|
||||||
|
else
|
||||||
|
NCMD="${SSHCMD} root@${nip}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -en "Mounting drive on '$nip'... ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ]; then
|
||||||
|
#${NCMD} mount -a > /dev/null 2>&1
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
# if [[ "${NCHOSTS}" == *"${nip}"* ]]; then
|
||||||
|
if [[ " ${NC_HOSTS[*]} " =~ " ${nip} " ]]; then
|
||||||
|
mntpath="/mnt/Nextcloud-Data"
|
||||||
|
# elif [[ "${WEBHOSTS}" == *"${nip}"* ]]; then
|
||||||
|
elif [[ " ${NM_HOSTS['WEB'][*]} " =~ " ${nip} " ]]; then
|
||||||
|
mntpath="/mnt/web-data"
|
||||||
|
fi
|
||||||
|
${NCMD} "test -e ${mntpath}/mounted"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Green]}MOUNTED ($mntpath)${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}NOT MOUNTED ($mntpath)${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$nip" = "10.10.1.43" ]; then
|
||||||
|
echo -en "Mounting drive on '$nip'... ${idsCL[Default]}"
|
||||||
|
mntpath="/mnt/Nextcloud-Data"
|
||||||
|
${NCMD} "test -e ${mntpath}/mounted"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Green]}MOUNTED ($mntpath)${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}NOT MOUNTED ($mntpath)${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
|
||||||
|
# if [ "${RUN_NODE_TYPE}" == "" ]; then
|
||||||
|
#
|
||||||
|
# fi
|
||||||
|
if [ "${NM_SERVICE_DESC[${SERVICE['service']}]}" = "" ]; then
|
||||||
|
echo -e "${idsCL[Red]}(${SERVICE['service']}) is not an allowed service.${idsCL[Default]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ "${NM_SRVCOPTS[${SERVICE['action']}]}" = "" ]; then
|
||||||
|
echo -e "${idsCL[Red]}(${SERVICE['action']}) is not an allowed service action.${idsCL[Default]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
if [ "${SERVICE['action']}" = "start" ] && [ "${SERVICE['service']}" = "haproxy" ]; then
|
||||||
|
TACT='restart'
|
||||||
|
else
|
||||||
|
TACT="${SERVICE['action']}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}[[ ${NM_SERVICE_DESC[${SERVICE['service']}]} ${NM_SRVCOPTS[${SERVICE['action']}]}ing ]]${idsCL[Default]}"
|
||||||
|
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# echo "HERE: ${RUN_NODE_TYPE} - ${NT_HOST} = ${!NT_HOST}"
|
||||||
|
if ([ "${SERVICE['service']}" = "nginx" ] || [ "${SERVICE['service']}" = "apache2" ]) && ([ "${SERVICE['node']}" == "" ] || [ "${SERVICE['node']}" == "ALL" ]); then
|
||||||
|
if [ "${RUN_NODE_TYPE}" != "" ] && [ "${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}" != "" ] && ([ "${SERVICE['action']}" = "restart" ] || [ "${SERVICE['action']}" = "reload" ]); then
|
||||||
|
if [ "${SERVICE['node']}" != "ns" ]; then
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -en "${idsCL[LightYellow]}Verifying replication across the nodes... ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
if [[ "${RUN_NODE_IP}" == *"${!NT_HOST}"* ]]; then
|
||||||
|
PH_CMD=""
|
||||||
|
else
|
||||||
|
PH_CMD="${SSHCMD} root@${!NT_HOST}"
|
||||||
|
fi
|
||||||
|
${PH_CMD} touch ${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}/.test.repl
|
||||||
|
# ${PH_CMD} "echo -e \"Service ${SERVICE['service']} ${SERVICE['action']}\" >> ${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}/.test.repl"
|
||||||
|
for nip in "${!NT_HOSTS}"; do
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ] && [ "${nip}" != "${!NT_HOST}" ]; then
|
||||||
|
checked=false
|
||||||
|
until [ "${checked}" = "true" ]; do
|
||||||
|
checked="`${PH_CMD} ${SSHCMD} root@${nip} [ -f ${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}/.test.repl ] && [ $(expr $(date +%s) - $(stat -L --format %Y ${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}/.test.repl)) -le 90 ] && echo true || echo false`"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
for nip in "${!NT_HOSTS}"; do
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ] && [ "${nip}" != "${!NT_HOST}" ]; then
|
||||||
|
unset checked1 checked2
|
||||||
|
until [ "${checked1}" = "true" ]; do
|
||||||
|
until [ "${checked2}" = "true" ]; do checked2="`${PH_CMD} [ -f ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl ] && echo true`"; sleep 1s; done
|
||||||
|
checked1="`${PH_CMD} [ $(expr $(date +%s) - $(stat -L --format %Y ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl)) -le 90 ] && echo true`"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
${PH_CMD} rm -f ${NM_REPL_NGINX_PATHS[${RUN_NODE_TYPE}]}/.test.repl
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
elif ([ "${SERVICE['service']}" = "pdns" ] || [ "${SERVICE['service']}" = "pdnsadmin" ] || [ "${SERVICE['service']}" = "headscale" ]) && ([ "${SERVICE['node']}" == "" ] || [ "${SERVICE['node']}" == "ALL" ]); then
|
||||||
|
if [ "${SERVICE['action']}" = "start" ] || [ "${SERVICE['action']}" = "restart" ] || [ "${SERVICE['action']}" = "reload" ]; then
|
||||||
|
if [ "${SERVICE['node']}" != "ns" ]; then
|
||||||
|
[ ${QUIET} -eq 0 ] && echo -en "${idsCL[LightYellow]}Verifying replication across the nodes... ${idsCL[Default]}"
|
||||||
|
if [[ "${RUN_NODE_IP}" == *"${!NT_HOST}"* ]]; then
|
||||||
|
PH_CMD=""
|
||||||
|
else
|
||||||
|
PH_CMD="${SSHCMD} root@${!NT_HOST}"
|
||||||
|
fi
|
||||||
|
${PH_CMD} touch ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl
|
||||||
|
for nip in "${!NT_HOSTS}"; do
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ] && [ "${nip}" != "${!NT_HOST}" ]; then
|
||||||
|
unset checked1 checked2
|
||||||
|
until [ "${checked1}" = "true" ]; do
|
||||||
|
until [ "${checked2}" = "true" ]; do checked2="`${PH_CMD} [ -f ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl ] && echo true`"; sleep 1s; done
|
||||||
|
checked1="`${PH_CMD} [ $(expr $(date +%s) - $(stat -L --format %Y ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl)) -le 90 ] && echo true`"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
${PH_CMD} rm -f ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/.test.repl
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$(declare -p NTS)" =~ "declare -a" ]]; then
|
||||||
|
for NTYPE in "${NTS[@]}"; do
|
||||||
|
var1=${NTYPE}_SERVICES_CHECK[@]
|
||||||
|
# if [[ "${!var1}" = *"${SERVICE['service']}"* ]]; then
|
||||||
|
if [[ " ${!var1} " =~ " ${SERVICE['service']} " ]]; then
|
||||||
|
if [ "${SERVICE['node']}" != "" ]; then
|
||||||
|
var2=(${SERVICE['node']})
|
||||||
|
sethost=true;
|
||||||
|
else
|
||||||
|
var2=${NTYPE}_HOSTS[@]
|
||||||
|
IFS=' '
|
||||||
|
var2=(${!var2})
|
||||||
|
unset IFS
|
||||||
|
sethost=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
for nip in "${var2[@]}"; do
|
||||||
|
# if [[ "${RUN_NODE_IP}" == *"${SERVICE['node']}"* ]]; then GO=true;
|
||||||
|
# elif [ ! -z ${SERVICE['node']+x} ] || [ "${SERVICE['node']}" == "q" ]; then GO=true;
|
||||||
|
# else GO=false;
|
||||||
|
# fi
|
||||||
|
# if [ "${GO}" == "true" ]; then
|
||||||
|
if [ $sethost == true ]; then
|
||||||
|
nodename=${NM_HOSTNAMES[${SERVICE['node']}]}
|
||||||
|
else
|
||||||
|
nodename="${NM_HOSTNAMES[${nip}]}[${nip}]"
|
||||||
|
fi
|
||||||
|
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
|
||||||
|
nip='localhost '
|
||||||
|
NCMD=''
|
||||||
|
else
|
||||||
|
NCMD="${SSHCMD} root@${nip}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
NOGOCHK=true;
|
||||||
|
if [ "${SERVICE['service']}" == "gitea" ]; then
|
||||||
|
if [[ $(${NCMD} ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) != *$(GET_AUTHELIA_IP)* ]]; then
|
||||||
|
NOGOCHK=false;
|
||||||
|
fi
|
||||||
|
elif [ "${SERVICE['service']}" == "headscale" ]; then
|
||||||
|
if [[ $(${NCMD} ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) != *${NM_SINGLESRVR_IP['HS']}* ]]; then
|
||||||
|
NOGOCHK=false;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${NOGOCHK}" == "true" ]; then
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on ${nodename} ($nip)... ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
checkhost=$(CHECK_HOST ${nip})
|
||||||
|
if [ "${checkhost}" != "false" ]; then
|
||||||
|
|
||||||
|
if [ "${SERVICE['service']}"= = "offsite-power-check" ]; then
|
||||||
|
if [ ${QUIET} -eq 0 ] && [ "${SERVICE['action']}" != "status" ]; then
|
||||||
|
if [ "$(${SSHCMD} root@${nip} ps -U root | grep "offsite-power-check.sh start" | grep -v "grep" | awk '{print $1}')" != "" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ "${SERVICE['service']}" = "pdnsadmin" ]; then
|
||||||
|
srva="pdnsadmin.socket pdnsadmin.service"
|
||||||
|
elif [ "${SERVICE['service']}" = "syncthing" ] && [[ "${NM_SERVICES_CHECK[${NTYPE}]}" = *"syncthing@pdns"* ]]; then
|
||||||
|
srva="syncthing syncthing@pdns"
|
||||||
|
else
|
||||||
|
srva=${SERVICE['service']}
|
||||||
|
fi
|
||||||
|
if [ "${SERVICE['action']}" != "status" ]; then
|
||||||
|
${NCMD} systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
${NCMD} systemctl ${SERVICE['action']} ${srva}
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ ${QUIET} -eq 0 ] && [ "${SERVICE['action']}" != "status" ]; then
|
||||||
|
SStatus=$(${NCMD} systemctl is-active ${SERVICE['service']} | tr -d $'\r')
|
||||||
|
if [[ "enable,disable" = *"${SERVICE['action']}"* ]] || [ "${SERVICE['service']}" = "daemon-reload" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [[ "${srva}" = *".socket"* ]] && [ "${SStatus}" = "active" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done (& socket service)${idsCL[Default]}"
|
||||||
|
elif [[ "${srva}" = *"@pdns"* ]] && [ "${SStatus}" = "active" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done (& @pdns)${idsCL[Default]}"
|
||||||
|
elif [ "${SStatus}" = "active" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [ "${SERVICE['action']}" = "stop" ]; then
|
||||||
|
echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# fi
|
||||||
|
# if [ "${SERVICE['service']}" = "gitea" ]; then
|
||||||
|
# break
|
||||||
|
# fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
else #no-nodetypes, standalone setup
|
||||||
|
echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on localhost ... ${idsCL[Default]}"
|
||||||
|
if [ "${SERVICE['action']}" != "status" ]; then
|
||||||
|
systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
systemctl ${SERVICE['action']} ${srva}
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ ${QUIET} -eq 0 ] && [ "${SERVICE['action']}" != "status" ]; then
|
||||||
|
if [[ "enable,disable" = *"${SERVICE['action']}"* ]] || [ "${SERVICE['service']}" = "daemon-reload" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [ "$(systemctl is-active ${SERVICE['service']})" = "active" ]; then
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
elif [ "${SERVICE['action']}" = "stop" ]; then
|
||||||
|
echo -e "${idsCL[Red]}STOPPED${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Red]}ERROR${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${QUIET} -eq 0 ]; then
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[Green]}${NM_SERVICE_DESC[${SERVICE['service']}]} has been ${NM_SRVCOPTS[${SERVICE['action']}]}ed${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
956
inc/sites.inc
Executable file
956
inc/sites.inc
Executable file
@@ -0,0 +1,956 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
DELSITE(){
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
-site) DEL_SITE=${2};;
|
||||||
|
-ssl) DEL_SSL=${2};;
|
||||||
|
-*)
|
||||||
|
[ "${1}" != "-h" ] && echo "Invalid option: '${1}' requires an argument" 1>&2
|
||||||
|
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)"
|
||||||
|
printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well"
|
||||||
|
printf "%-${width}s- %s\n" " -list" "List sites (same as running nodemgmt delsites)"
|
||||||
|
echo -e "}\n"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if [ -z ${DEL_SITE+x} ]; then
|
||||||
|
until [ "${DEL_SITE}" != "" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}Delete what site address: ${idsCL[Default]}"
|
||||||
|
read DEL_SITE
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if [[ $DEL_SSL =~ ^[Nn]$ ]]; then
|
||||||
|
DEL_SSL=no
|
||||||
|
elif [[ $DEL_SSL =~ ^[Yy]$ ]]; then
|
||||||
|
DEL_SSL=yes
|
||||||
|
elif [ -z ${DEL_SSL+x} ]; then
|
||||||
|
echo -en "${idsCL[LightRed]}Do you also want to delete the certs for '${DEL_SITE}' as well? [y/N]${idsCL[Default]} "
|
||||||
|
read DEL_SSL
|
||||||
|
if [[ $DEL_SSL =~ ^[Nn]$ ]]; then
|
||||||
|
DEL_SSL=no
|
||||||
|
elif [[ $DEL_SSL =~ ^[Yy]$ ]]; then
|
||||||
|
DEL_SSL=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ ! -z ${DEL_SITE+x} ] && [ "${DEL_SITE}" != "" ]; then
|
||||||
|
echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE^^}${idsCL[LightRed]}'...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo -e "${idsCL[LightRed]}[[Removing Files and Folders]]${idsCL[Default]}"
|
||||||
|
echo -e "${idsCL[LightRed]}-------------------------------------------${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
echo -en "${idsCL[LightCyan]}Removing NGINX files ... ${idsCL[Default]}"
|
||||||
|
rm -f ${NM_NGINXPATH}/sites-available/${DEL_SITE}* >/dev/null 2>&1
|
||||||
|
rm -f ${NM_NGINXPATH}/sites-enabled/${DEL_SITE}* >/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ "${DEL_SSL}" == "yes" ]; then
|
||||||
|
DEL-SSL ${DEL_SITE}
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "${NM_AUTHELIA_IP}" != "" ] && ${SSHCMD} root@${NM_AUTHELIA_IP} sed -i "/${DEL_SITE}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
|
||||||
|
|
||||||
|
# if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
|
||||||
|
SERVICE_MGMT nginx restart
|
||||||
|
# else
|
||||||
|
# /bin/systemctl restart nginx
|
||||||
|
# fi
|
||||||
|
echo -e "${idsCL[LightRed]}Site has been deleted.${idsCL[Default]}\n"
|
||||||
|
else
|
||||||
|
echo "Missing arguments"
|
||||||
|
echo
|
||||||
|
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -site {FQDN address}" "Site to delete"
|
||||||
|
printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well"
|
||||||
|
printf "%-${width}s- %s\n" " -list" "List sites (same as running nodemgmt delsites)"
|
||||||
|
echo "}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
NEWSITE(){
|
||||||
|
CERTTEST=0
|
||||||
|
echo
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
-t|-test) CERTTEST=1;;
|
||||||
|
-site) NEW_SITE=${2};;
|
||||||
|
-type) SITE_TYPE=${2};;
|
||||||
|
-ssl) CREATE_SSL=${2};;
|
||||||
|
-proxy_scheme) PROXYSCHEME=${2};;
|
||||||
|
-proxy_host) PROXYHOST=${2};;
|
||||||
|
-proxy_port) PROXYPORT=${2};;
|
||||||
|
-websocket) WEBSOCKET=${2};;
|
||||||
|
-hsts) HSTS=${2};;
|
||||||
|
-exploits) EXPLOITS=${2};;
|
||||||
|
-secure) SECURE=${2};;
|
||||||
|
-h | -help | --help)
|
||||||
|
echo -e "Usage: ${idsCL[LightYellow]}[nodemgmt or nmg] newsite ${idsCL[Yellow]}{flags}${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -site {FQDN address(,es)}" "(new site and aliases, comma separated)"
|
||||||
|
printf "%-${width}s- %s\n" " -ssl {yes or no}" "(create and enable ssl)"
|
||||||
|
printf "%-${width}s- %s\n" " -type {'local' or 'proxy'}" "(defaults to proxy)"
|
||||||
|
printf "%-${width}s- %s\n" " -proxy_port {host port}" "(proxy backend host)"
|
||||||
|
printf "%-${width}s- %s\n" " -proxy_host {IP or FQDN}" "(proxy backend port)"
|
||||||
|
printf "%-${width}s- %s\n" " -proxy_scheme {http or https}" "(proxy backend scheme)"
|
||||||
|
printf "%-${width}s- %s\n" " -websocket {yes or no}" "(websocket support)"
|
||||||
|
printf "%-${width}s- %s\n" " -hsts {yes or no}" "(hsts support)"
|
||||||
|
printf "%-${width}s- %s\n" " -exploits {yes or no}" "(block exploits)"
|
||||||
|
printf "%-${width}s- %s\n" " -secure {1FA, 2FA or no}" "(SSO secure access)"
|
||||||
|
printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)"
|
||||||
|
echo "}"
|
||||||
|
echo
|
||||||
|
exit 0;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
if [ ${CERTTEST} -eq 1 ]; then
|
||||||
|
echo -e "${idsCL[LightYellow]}${idsST[Bold]}### REQUESTING CERT IN TEST MODE ###${idsST[Reset]}${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ -z ${NEW_SITE+x} ]; then
|
||||||
|
until [ "${NEW_SITE}" != "" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}New site domain name (comma seperated for multiple): ${idsCL[Default]}"
|
||||||
|
read NEW_SITE
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
showdivide=yes
|
||||||
|
fi
|
||||||
|
if [[ ${NEW_SITE} == *","* ]]; then
|
||||||
|
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
|
||||||
|
MAIN_SITE=${NEW_SITES[0]}
|
||||||
|
NGINX_SERVERNAME=${NEW_SITE//[,]/ }
|
||||||
|
else
|
||||||
|
MAIN_SITE=${NEW_SITE}
|
||||||
|
NGINX_SERVERNAME=${NEW_SITE}
|
||||||
|
|
||||||
|
fi
|
||||||
|
nginxconfig=${NM_NGINXPATH}/sites-available/${MAIN_SITE}.conf
|
||||||
|
|
||||||
|
if [ -f ${nginxconfig} ]; then
|
||||||
|
echo -en "${idsCL[LightRed]}This site already exists, overwrite it? (y/N): ${idsCL[Default]}"
|
||||||
|
read overwrite
|
||||||
|
echo
|
||||||
|
if [[ ${overwrite} =~ ^[Nn]$ ]] || [ "${overwrite}" = "" ]; then
|
||||||
|
exit 0
|
||||||
|
elif [[ ${overwrite} =~ ^[Yy]$ ]]; then
|
||||||
|
rm -f ${nginxconfig} >/dev/null 2>&1
|
||||||
|
[ "${NM_AUTHELIA_IP}" != "" ] && ${SSHCMD} root@${NM_AUTHELIA_IP} sed -i "/${MAIN_SITE}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# if [ -z ${CREATE_SSL+x} ]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Create SSL for site? [Y/n] ${idsCL[Default]}"
|
||||||
|
# read CREATE_SSL
|
||||||
|
# showdivide=yes
|
||||||
|
# if [[ $CREATE_SSL =~ ^[Yy]$ ]] || [ "${CREATE_SSL}" = "" ]; then
|
||||||
|
# CREATE_SSL=yes
|
||||||
|
# else
|
||||||
|
# CREATE_SSL=no
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
|
# fi
|
||||||
|
if [ -z ${SITE_TYPE+x} ]; then
|
||||||
|
until [ "${SITE_TYPE}" == "proxy" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}Site type (local/{proxy}): ${idsCL[Default]}"
|
||||||
|
read SITE_TYPE
|
||||||
|
if [ "${SITE_TYPE}" == "" ]; then
|
||||||
|
SITE_TYPE=proxy
|
||||||
|
else
|
||||||
|
SITE_TYPE=${SITE_TYPE,,}
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
showdivide=yes
|
||||||
|
fi
|
||||||
|
if [ "${SITE_TYPE}" = "proxy" ]; then
|
||||||
|
if [ -z ${PROXYHOST+x} ]; then
|
||||||
|
until [ "${PROXYHOST}" != "" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}What is the proxy backend address (IP or FQDN): ${idsCL[Default]}"
|
||||||
|
read PROXYHOST
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
showdivide=yes
|
||||||
|
fi
|
||||||
|
if [ -z ${PROXYPORT+x} ]; then
|
||||||
|
until [ "${PROXYPORT}" != "" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}What is the proxy backend port (tcp port): ${idsCL[Default]}"
|
||||||
|
read PROXYPORT
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
showdivide=yes
|
||||||
|
fi
|
||||||
|
if [ -z ${PROXYSCHEME+x} ]; then
|
||||||
|
until [ "${PROXYSCHEME}" == "http" ] || [ "${PROXYSCHEME}" == "https" ]; do
|
||||||
|
echo -en "${idsCL[LightCyan]}What is the proxy backend scheme (http/https): ${idsCL[Default]}"
|
||||||
|
read PROXYSCHEME
|
||||||
|
[ "${PROXYSCHEME}" != "" ] && PROXYSCHEME=${PROXYSCHEME,,}
|
||||||
|
echo
|
||||||
|
done
|
||||||
|
showdivide=yes
|
||||||
|
fi
|
||||||
|
# if [ -z ${WEBSOCKET+x} ]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Enable Websocket Support (y/N): ${idsCL[Default]}"
|
||||||
|
# read WEBSOCKET
|
||||||
|
# showdivide=yes
|
||||||
|
# if [[ ${WEBSOCKET} =~ ^[Nn]$ ]] || [ "${WEBSOCKET}" = "" ]; then
|
||||||
|
# WEBSOCKET=no
|
||||||
|
# elif [[ ${WEBSOCKET} =~ ^[Yy]$ ]]; then
|
||||||
|
# WEBSOCKET=yes
|
||||||
|
# else
|
||||||
|
# WEBSOCKET=no
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
|
# fi
|
||||||
|
# if [ -z ${HSTS+x} ]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Enable HSTS Support (Y/n): ${idsCL[Default]}"
|
||||||
|
# read HSTS
|
||||||
|
# showdivide=yes
|
||||||
|
# ([[ ${HSTS} =~ ^[Yy]$ ]] || [ "${HSTS}" = "" ]) && HSTS=yes || HSTS=no
|
||||||
|
# echo
|
||||||
|
# fi
|
||||||
|
# if [ -z ${EXPLOITS+x} ]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Block exploits (y/N): ${idsCL[Default]}"
|
||||||
|
# read EXPLOITS
|
||||||
|
# showdivide=yes
|
||||||
|
# if [[ ${EXPLOITS} =~ ^[Nn]$ ]] || [ "${EXPLOITS}" = "" ]; then
|
||||||
|
# EXPLOITS=no
|
||||||
|
# elif [[ ${EXPLOITS} =~ ^[Yy]$ ]]; then
|
||||||
|
# EXPLOITS=yes
|
||||||
|
# else
|
||||||
|
# EXPLOITS=no
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
|
# fi
|
||||||
|
# if [ -z ${SECURE+x} ]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Secure site with Authelia SSO (y/N): ${idsCL[Default]}"
|
||||||
|
# read SECURE
|
||||||
|
# showdivide=yes
|
||||||
|
# if [[ ${SECURE} =~ ^[Nn]$ ]] || [ "${SECURE}" = "" ]; then
|
||||||
|
# SECURE=no
|
||||||
|
# elif [[ ${SECURE} =~ ^[Yy]$ ]]; then
|
||||||
|
# echo -en "${idsCL[LightCyan]}Would you like to add a side of MFA with that SSO (Y/n): ${idsCL[Default]}"
|
||||||
|
# read MFA
|
||||||
|
# showdivide=yes
|
||||||
|
# ([[ ${MFA} =~ ^[Yy]$ ]] || [ "${MFA}" = "" ]) && SECURE="2FA" || SECURE="1FA"
|
||||||
|
# else
|
||||||
|
# SECURE=no
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
[ "${showdivide}" == "yes" ] && DIVIDER
|
||||||
|
echo
|
||||||
|
|
||||||
|
|
||||||
|
NEWSITE=true
|
||||||
|
EDITSITE
|
||||||
|
|
||||||
|
|
||||||
|
# width=18
|
||||||
|
# printf "%-${width}s: %s\n" "New site" "${NEW_SITE}"
|
||||||
|
# printf "%-${width}s: %s\n" "Create SSL" "${CREATE_SSL}"
|
||||||
|
# printf "%-${width}s: %s\n" "Site type" "${SITE_TYPE}"
|
||||||
|
# if [ "${SITE_TYPE}" = "proxy" ]; then
|
||||||
|
# printf "%-${width}s: %s\n" "Proxy host" "${PROXYHOST}"
|
||||||
|
# printf "%-${width}s: %s\n" "Proxy port" "${PROXYPORT}"
|
||||||
|
# printf "%-${width}s: %s\n" "Proxy scheme" "${PROXYSCHEME}"
|
||||||
|
# printf "%-${width}s: %s\n" "Websocket Support" "${WEBSOCKET}"
|
||||||
|
# printf "%-${width}s: %s\n" "HSTS Support" "${HSTS}"
|
||||||
|
# printf "%-${width}s: %s\n" "Block Exploits" "${EXPLOITS}"
|
||||||
|
# printf "%-${width}s: %s\n" "Secure Access" "${SECURE}"
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
|
# echo -en "${idsCL[LightGreen]}Is this information correct? [Y/n]${idsCL[Default]} "
|
||||||
|
# read -n 1 response
|
||||||
|
# echo
|
||||||
|
|
||||||
|
if [[ $response =~ ^[Yy]$ ]] || [ "${response}" = "" ]; then
|
||||||
|
if [ "${SITE_TYPE}" = "proxy" ]; then
|
||||||
|
if [ ! -z ${PROXYSCHEME+x} ] && [ ! -z ${PROXYHOST+x} ] && [ ! -z ${PROXYPORT+x} ]; then GO=true; fi
|
||||||
|
else GO=true
|
||||||
|
fi
|
||||||
|
if [ "${GO}" = "true" ]; then
|
||||||
|
echo -e "${idsCL[LightGreen]}Setting up new site for '${idsCL[Yellow]}${MAIN_SITE}${idsCL[LightGreen]}' {${NGINX_SERVERNAME}}...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [[ "${SECURE}" = *"FA"* ]] && [ "${NM_DOCKER_COMPOSE_LOC['authelia']}" != "" ]; then
|
||||||
|
echo -e "${idsCL[LightGreen]}Configuring Authelia SSO for '${idsCL[Yellow]}${MAIN_SITE}${idsCL[LightGreen]}' {${NGINX_SERVERNAME}}...${idsCL[Default]}"
|
||||||
|
|
||||||
|
if [ "${SECURE}" == "2FA" ]; then
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -ie \"/domain: # Proxies needing 2 factor below/a ~~~ - \\\"${MAIN_SITE}\\\"\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
else
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -ie \"/domain: # Proxies only requiring username and password/a ~~~ - \\\"${MAIN_SITE}\\\"\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
fi
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -i \"s/~~~/ /g\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "/usr/bin/docker restart authelia >/dev/null 2>&1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
######################################### LOCAL
|
||||||
|
if [ "${SITE_TYPE}" = "local" ]; then
|
||||||
|
echo -e "server {
|
||||||
|
listen 80;" > ${nginxconfig}
|
||||||
|
if [ "${CREATE_SSL}" = "yes" ]; then
|
||||||
|
echo -e " listen 443 ssl http2;" >> ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "
|
||||||
|
server_name ${NGINX_SERVERNAME};
|
||||||
|
|
||||||
|
set \$base ${NM_WWWPATH}/${MAIN_SITE};
|
||||||
|
root \$base/public_html;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/${MAIN_SITE}-access.log;
|
||||||
|
error_log /var/log/nginx/${MAIN_SITE}-error.log warn;" >> ${nginxconfig}
|
||||||
|
|
||||||
|
if [ "${CREATE_SSL}" = "yes" ]; then
|
||||||
|
echo -e "
|
||||||
|
ssl_certificate_key ${NM_CERTPATH}/live/${MAIN_SITE}/fullchain.pem;
|
||||||
|
ssl_certificate_key ${NM_CERTPATH}/live/${MAIN_SITE}/privkey.pem;
|
||||||
|
include conf.d/include/ssl-ciphers.conf;" >> ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files \$uri \$uri/ /index.php?\$query_string;" >> ${nginxconfig}
|
||||||
|
if [ "${CREATE_SSL}" = "yes" ]; then
|
||||||
|
echo -e " include conf.d/include/force-ssl.conf;" >> ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e " }
|
||||||
|
|
||||||
|
location ~ \.php\$ {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||||
|
include conf.d/include/php_fastcgi.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
include conf.d/include/general.conf;" >> ${nginxconfig}
|
||||||
|
if [ "${CREATE_SSL}" = "yes" ]; then
|
||||||
|
echo -e " include conf.d/include/letsencrypt-acme-challenge.conf;" >> ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "}" >> ${nginxconfig}
|
||||||
|
|
||||||
|
sudo -u www-data mkdir -p ${NM_WWWPATH}/${MAIN_SITE}/{public_html,nginx_logs}
|
||||||
|
|
||||||
|
|
||||||
|
######################################### PROXY
|
||||||
|
else
|
||||||
|
NEWPROXYSITE_CREATE ${MAIN_SITE} ${NGINX_SERVERNAME} ${PROXYHOST} ${PROXYPORT} ${PROXYSCHEME} ${WEBSOCKET} ${HSTS} ${EXPLOITS} ${SECURE} ${CREATE_SSL} ${CERTTEST} NEWSITE
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
|
echo -e "${NEW_SITE}\n${daterun}" >| ${NM_LOGFOLDER}/new-site.lastrun
|
||||||
|
DIVIDER true
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}The new site for '${idsCL[LightGreen]}${NEW_SITE}${idsCL[Default]}' has been created.${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ ! -f ${NM_NGINXPATH}/sites-available/default* ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Restart NGINX on all Nodes (Y/n): ${idsCL[Default]}"
|
||||||
|
read -n 1 NGINXRELOAD
|
||||||
|
if [[ ${NGINXRELOAD} =~ ^[Nn]$ ]]; then
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
# if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
|
||||||
|
SERVICE_MGMT nginx restart
|
||||||
|
# else
|
||||||
|
# /bin/systemctl restart nginx
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
|
||||||
|
SERVICE_MGMT nginx restart
|
||||||
|
# else
|
||||||
|
# /bin/systemctl restart nginx
|
||||||
|
# fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Missing proxy arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
${NM_SCRIPT} newsite
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
NEWPROXYSITE_CREATE(){
|
||||||
|
SITENAME=${1}
|
||||||
|
SERVERNAMES=${2}
|
||||||
|
PROXYHOST=${3}
|
||||||
|
PROXYPORT=${4}
|
||||||
|
PROXYSCHEME=${5}
|
||||||
|
WEBSOCKET=${6}
|
||||||
|
HSTS=${7}
|
||||||
|
EXPLOITS=${8}
|
||||||
|
SECURE=${9}
|
||||||
|
SSL=${10}
|
||||||
|
CERTTEST=${11}
|
||||||
|
[ "${12}" == "NEWSITE" ] && NEWSITE=1 || NEWSITE=0
|
||||||
|
|
||||||
|
[ "${CERTTEST}" == "1" ] && CERTTEST='-test ' || CERTTEST=''
|
||||||
|
|
||||||
|
if [[ ${SERVERNAMES} == *","* ]]; then
|
||||||
|
NGINX_SERVERNAME=${SERVERNAMES}
|
||||||
|
IFS=','; SERVERNAMES=(${SERVERNAMES}); unset IFS
|
||||||
|
MAIN_SITE=${SERVERNAMES[0]}
|
||||||
|
else
|
||||||
|
MAIN_SITE=${SERVERNAMES}
|
||||||
|
NGINX_SERVERNAME=${SERVERNAMES}
|
||||||
|
fi
|
||||||
|
nginxconfig=${NM_NGINXPATH}/sites-available/${SITENAME,,}.conf
|
||||||
|
if [ "${MAIN_SITE}" != "${SITENAME}" ] && [ -f ${nginxconfig} ]; then
|
||||||
|
echo -e "\n${idsCL[LightRed]}New site name already exists!${idsCL[Default]}\n"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
[ "${MAIN_SITE}" != "${SITENAME}" ] && [ -f ${NM_NGINXPATH}/sites-available/${SITENAME}.conf ] && mv ${NM_NGINXPATH}/sites-available/${SITENAME}.conf ${nginxconfig}
|
||||||
|
if [ ! -f ${nginxconfig} ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Configuring initial NGINX Site config ... "
|
||||||
|
cp ${NM_FOLDER}/templates/nginx.proxy.site ${nginxconfig}
|
||||||
|
sed -i "s/<<SERVER_NAME>>/${NGINX_SERVERNAME//,/ }/g" ${nginxconfig}
|
||||||
|
sed -i "s/<<MAIN_SITE>>/${MAIN_SITE}/g" ${nginxconfig}
|
||||||
|
sed -i "s/<<PROXY_IP>>/${PROXYHOST}/g" ${nginxconfig}
|
||||||
|
sed -i "s/<<PROXY_PORT>>/${PROXYPORT}/g" ${nginxconfig}
|
||||||
|
sed -i "s/<<PROXY_SCHEME>>/${PROXYSCHEME}/g" ${nginxconfig}
|
||||||
|
sed -i "s%<<NM_CERTPATH>>%${NM_CERTPATH}%g" ${nginxconfig}
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
|
else
|
||||||
|
oldservernames=$(grep 'server_name' ${nginxconfig});oldservernames=${oldservernames//;/};oldservernames=${oldservernames#* };oldservernames=${oldservernames// /,}
|
||||||
|
if [ "${MAIN_SITE}" != "${SITENAME}" ]; then
|
||||||
|
echo -e "${idsCL[LightCyan]}Detected MAIN_SITE name change, making necesary adjustments ... "
|
||||||
|
echo -en "\n${idsCL[LightCyan]}Removing old SSL Cert ... "
|
||||||
|
DEL-SSL ${SITENAME} >/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
echo -en "\n${idsCL[LightCyan]}Requesting new SSL Cert ... "
|
||||||
|
NEWCERT ${CERTTEST}-expand -nnr -newsite ${NGINX_SERVERNAME} ###>/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
# sed -i "s/live\/${SITENAME}\//live\/${MAIN_SITE}\//g" ${nginxconfig}
|
||||||
|
sed -i "s/\/${SITENAME}/\/${MAIN_SITE}/g" ${nginxconfig}
|
||||||
|
|
||||||
|
elif [ "${oldservernames}" != "${NGINX_SERVERNAME}" ]; then
|
||||||
|
echo -en "\n${idsCL[LightCyan]}Updating SSL Cert for hostname changes ... "
|
||||||
|
NEWCERT ${CERTTEST}-expand -nnr -newsite ${NGINX_SERVERNAME} ###>/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
fi
|
||||||
|
echo -en "\n${idsCL[LightCyan]}Configuring NGINX proxy for site ... "
|
||||||
|
sed -i "/set \$forward_scheme/d" ${nginxconfig}; sed -i "/server {/a\\\tset \$forward_scheme ${PROXYSCHEME};" ${nginxconfig}
|
||||||
|
sed -i "/set \$server/d" ${nginxconfig}; sed -i "/set \$forward_scheme/a\\\tset \$server \"${PROXYHOST}\";" ${nginxconfig}
|
||||||
|
sed -i "/set \$port/d" ${nginxconfig}; sed -i "/set \$server/a\\\tset \$port ${PROXYPORT};" ${nginxconfig}
|
||||||
|
sed -i "/server_name/,+1 d" ${nginxconfig}; sed -i "/set \$port/a\\\n\tserver_name ${NGINX_SERVERNAME//,/ };" ${nginxconfig}
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||||
|
fi
|
||||||
|
echo "about to create SSL..."
|
||||||
|
if [ "${SSL^^}" == "YES" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling SSL ... "
|
||||||
|
if [ ! -f ${NM_CERTPATH}/live/${MAIN_SITE}/cert.pem ]; then
|
||||||
|
echo -e "\n${idsCL[LightCyan]}No SSL cert detected, will generate one now ... "
|
||||||
|
NEWCERT ${CERTTEST}-newsite -nnr ${NGINX_SERVERNAME}
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ -f ${NM_CERTPATH}/live/${MAIN_SITE}/cert.pem ]; then
|
||||||
|
sed -i "s/#ssl_certificate/ssl_certificate/g" ${nginxconfig}
|
||||||
|
sed -i "s/#listen 443/listen 443/g" ${nginxconfig}
|
||||||
|
sed -i "s/#include conf.d\/include\/ssl-ciphers.conf/include conf.d\/include\/ssl-ciphers.conf/g" ${nginxconfig}
|
||||||
|
sed -i "s/#include conf.d\/include\/force-ssl.conf/include conf.d\/include\/force-ssl.conf/g" ${nginxconfig}
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[LightRed]}Awww shit ERROR: Cert not created, run for the hills!!${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling SSL ... "
|
||||||
|
sed -i "s/ssl_certificate/#ssl_certificate/g" ${nginxconfig}
|
||||||
|
sed -i "s/listen 443/#listen 443/g" ${nginxconfig}
|
||||||
|
sed -i "s/include conf.d\/include\/ssl-ciphers.conf/#include conf.d\/include\/ssl-ciphers.conf/g" ${nginxconfig}
|
||||||
|
sed -i "s/include conf.d\/include\/force-ssl.conf/#include conf.d\/include\/force-ssl.conf/g" ${nginxconfig}
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [[ "${SECURE}" = *"FA"* ]]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling ${SECURE} SSO access ... "
|
||||||
|
sed -i "s/#include conf.d\/include\/secure-access.conf/include conf.d\/include\/secure-access.conf/g" ${nginxconfig}
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} sed -i "/${SITENAME}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
|
||||||
|
if [ "${SECURE}" == "2FA" ]; then
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -ie \"/domain: # Proxies needing 2 factor below/a ~~~ - \\\"${MAIN_SITE}\\\"\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
else
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -ie \"/domain: # Proxies only requiring username and password/a ~~~ - \\\"${MAIN_SITE}\\\"\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
fi
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "sed -i \"s/~~~/ /g\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
${SSHCMD} root@${NM_AUTHELIA_IP} "/usr/bin/docker restart authelia >/dev/null 2>&1"
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling SSO access ... "
|
||||||
|
sed -i "s/include conf.d\/include\/secure-access.conf/#include conf.d\/include\/secure-access.conf/g" ${nginxconfig}
|
||||||
|
[ "${NM_AUTHELIA_IP}" != "" ] && ${SSHCMD} root@${NM_AUTHELIA_IP} sed -i "/${SITENAME}/d" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ "${WEBSOCKET^^}" == "YES" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling Websocket Support ... "
|
||||||
|
sed -i "s/#include conf.d\/include\/websocket-support.conf/include conf.d\/include\/websocket-support.conf/g" ${nginxconfig}
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling Websocket Support ... "
|
||||||
|
sed -i "s/include conf.d\/include\/websocket-support.conf/#include conf.d\/include\/websocket-support.conf/g" ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ "${HSTS^^}" == "YES" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling HSTS Support ... "
|
||||||
|
sed -i "s/#include conf.d\/include\/hsts-support.conf/include conf.d\/include\/hsts-support.conf/g" ${nginxconfig}
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling HSTS Support ... "
|
||||||
|
sed -i "s/include conf.d\/include\/hsts-support.conf/#include conf.d\/include\/hsts-support.conf/g" ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ "${EXPLOITS^^}" == "YES" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling Web Exploit Blocks ... "
|
||||||
|
sed -i "s/#include conf.d\/include\/block-exploits.conf/include conf.d\/include\/block-exploits.conf/g" ${nginxconfig}
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling Web Exploit Blocks ... "
|
||||||
|
sed -i "s/include conf.d\/include\/block-exploits.conf/#include conf.d\/include\/block-exploits.conf/g" ${nginxconfig}
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
if [ "${LIVE^^}" == "YES" ]; then
|
||||||
|
echo -en "${idsCL[LightCyan]}Enabling Site ... "
|
||||||
|
ln -s ${nginxconfig} ${NM_NGINXPATH}/sites-enabled/${SITENAME,,}.conf
|
||||||
|
else
|
||||||
|
echo -en "${idsCL[LightCyan]}Disabling Site ... "
|
||||||
|
rm -f ${NM_NGINXPATH}/sites-enabled/${SITENAME,,}.conf
|
||||||
|
fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
sed -i "s/##include/#include/g" ${nginxconfig}
|
||||||
|
sed -i "s/##ssl_/#ssl_/g" ${nginxconfig}
|
||||||
|
|
||||||
|
echo -e "${idsCL[LightGreen]}Site Configuration Complete${idsCL[Default]}"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
SITEINFO(){
|
||||||
|
# start=`date +%s`
|
||||||
|
dl=105
|
||||||
|
EDIT=0; SEARCH=0
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "${1}" in
|
||||||
|
-e|-edit) EDIT=1;;
|
||||||
|
-s|-search) SEARCH=${2};;
|
||||||
|
-h | -help | --help)
|
||||||
|
echo -e "Usage: ${idsCL[LightYellow]}[nodemgmt or nmg] sites ${idsCL[Yellow]}{flags}${idsCL[Default]} {"
|
||||||
|
width=35
|
||||||
|
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
|
||||||
|
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to hostnames containing {search})"
|
||||||
|
echo -e "}\n"
|
||||||
|
exit 0;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${onefacline}" == "" ]; then
|
||||||
|
[ "$(${NCMD} ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1)" != "${NM_AUTHELIA_IP}" ] && ACMD="${SSHCMD} root@${NM_AUTHELIA_IP}" || ACMD=""
|
||||||
|
autheliaconfig=$(${ACMD} cat ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml)
|
||||||
|
onefacline=$(echo "${autheliaconfig}" | grep -Fn one_factor | sort | tail -n1)
|
||||||
|
onefacline=${onefacline%%:*}
|
||||||
|
twofacline=$(echo "${autheliaconfig}" | grep -Fn two_factor | sort | tail -n1)
|
||||||
|
twofacline=${twofacline%%:*}
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "${SEARCH}" != "0" ] && echo -e "${idsCL[Yellow]}Narrowing list to names containing '${idsCL[LightYellow]}${SEARCH,,}${idsCL[Yellow]}' ${idsCL[Default]}\n"
|
||||||
|
|
||||||
|
if [ ${EDIT} -eq 1 ]; then
|
||||||
|
[ "${2}" == "" ] && echo -e "${idsCL[LightGreen]}Choose a site from the list below to edit: ${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[LightGreen]}Local NGINX Sites ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-available
|
||||||
|
declare -A SITELIST
|
||||||
|
if [ "${gosite}" != "" ]; then
|
||||||
|
[ "${SEARCH}" != "0" ] && files=$(shopt -s nullglob dotglob; echo ${gosite}/*${SEARCH,,}*.conf) || files=$(shopt -s nullglob dotglob; echo ${gosite}/*.conf)
|
||||||
|
if (( ${#files} )); then
|
||||||
|
[ "${SEARCH}" != "0" ] && siteslist=$(find ${gosite}/*${SEARCH,,}*.conf) || siteslist=$(find ${gosite}/*.conf)
|
||||||
|
i=1
|
||||||
|
for sitefile in ${siteslist[@]}; do
|
||||||
|
SITENAME=${sitefile##*/}; SITENAME=${SITENAME/.conf/}
|
||||||
|
siteconfig=$(cat ${sitefile})
|
||||||
|
if (( i % 12 == 0 )) || [ $i = 1 ]; then
|
||||||
|
DIVIDER false yellow ${dl}
|
||||||
|
[ ${EDIT} -eq 1 ] && msg1='##) Site Hostname' || msg1='Site Hostname'
|
||||||
|
echo -en "${idsCL[Yellow]}"
|
||||||
|
if [ ${EDIT} -eq 1 ]; then
|
||||||
|
printf "%-32s %-5s %-7s %-5s %-5s %-5s %-5s %-5s %-8s\n" "${msg1}" "Live" "Type" "SSL" "HSTS" "WBSKT" "EXPLT" "LOCK" "Proxy Connection"
|
||||||
|
else
|
||||||
|
printf "%-28s %-5s %-7s %-5s %-5s %-5s %-5s %-5s %-8s\n" "${msg1}" "Live" "Type" "SSL" "HSTS" "WBSKT" "EXPLT" "LOCK" "Proxy Connection"
|
||||||
|
fi
|
||||||
|
echo -en "${idsCL[Default]}"
|
||||||
|
DIVIDER false yellow ${dl}
|
||||||
|
else
|
||||||
|
DIVIDER false darkGray ${dl}
|
||||||
|
fi
|
||||||
|
#twofacline=$(echo "${autheliaconfig}" | grep -Fn two_factor | sort | tail -n1)
|
||||||
|
if [ "$(echo "${siteconfig}" | grep include/proxy.conf)" != "" ] || [ "$(echo "${siteconfig}" | grep proxy_pass)" != "" ]; then
|
||||||
|
SITE_TYPE='Proxy'
|
||||||
|
if [ "$(echo "${siteconfig}" | grep include/proxy.conf)" != "" ]; then
|
||||||
|
PROXYHOST=$(echo "${siteconfig}" | grep 'set $server')
|
||||||
|
PROXYHOST=${PROXYHOST#*\"}; PROXYHOST=${PROXYHOST%\"*}
|
||||||
|
PROXYSCHEME=$(echo "${siteconfig}" | grep 'set $forward_scheme')
|
||||||
|
PROXYSCHEME=${PROXYSCHEME##* }; PROXYSCHEME=${PROXYSCHEME%;*}
|
||||||
|
PROXYPORT=$(echo "${siteconfig}" | grep 'set $port')
|
||||||
|
PROXYPORT=${PROXYPORT##* }; PROXYPORT=${PROXYPORT%;*}
|
||||||
|
PROXYHOST_FULL="${PROXYSCHEME}://${PROXYHOST}:${PROXYPORT}"
|
||||||
|
else
|
||||||
|
PROXYHOST_FULL="[ custom proxy_pass ]"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
SITE_TYPE='HTTP'
|
||||||
|
PROXYHOST_FULL=''
|
||||||
|
fi
|
||||||
|
|
||||||
|
server=$(echo "${siteconfig}" | grep 'set $port')
|
||||||
|
|
||||||
|
[ "$(echo "${siteconfig}" | grep \#ssl_certificate)" != "" ] && SSL='' || SSL='Yes'
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/hsts-support.conf')" != "" ] && HSTS='' || HSTS='Yes'
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/websocket-support.conf')" != "" ] && WEBSOCKET='' || WEBSOCKET='Yes'
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/block-exploits.conf')" != "" ] && EXPLOITS='' || EXPLOITS='Yes'
|
||||||
|
|
||||||
|
if [ "$(echo "${siteconfig}" | grep '\#include conf.d/include/secure-access.conf')" == "" ]; then
|
||||||
|
sitefacline=$(echo "${autheliaconfig}" | grep -Fn ${SITENAME})
|
||||||
|
sitefacline=${sitefacline%%:*}
|
||||||
|
if [ "${sitefacline}" == "" ]; then
|
||||||
|
SECURE='error'
|
||||||
|
# ${SSHCMD} root@${NM_AUTHELIA_IP} "sed -ie \"/domain: # Proxies only requiring username and password/a ~~~ - \\\"${SITENAME}\\\"\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
# ${SSHCMD} root@${NM_AUTHELIA_IP} "sed -i \"s/~~~/ /g\" ${NM_DOCKER_COMPOSE_LOC['authelia']}/config/configuration.yml"
|
||||||
|
elif [ ${sitefacline} -lt ${onefacline} ]; then
|
||||||
|
SECURE='1FA'
|
||||||
|
elif [ ${sitefacline} -lt ${twofacline} ]; then
|
||||||
|
SECURE='2FA'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
SECURE=''
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -f ${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled/${SITENAME}.conf ] && LIVE='Yes' || LIVE=''
|
||||||
|
|
||||||
|
|
||||||
|
[ ${i} -lt 10 ] && ii=" ${i}" || ii=${i}
|
||||||
|
[ ${EDIT} -eq 1 ] && msg1="${ii}) ${SITENAME}" || msg1="${SITENAME}"
|
||||||
|
[ "${LIVE}" == "Yes" ] && echo -en "${idsCL[White]}" || echo -en "${idsCL[DarkGray]}"
|
||||||
|
if [ ${EDIT} -eq 1 ]; then
|
||||||
|
printf "%-32s %-5s %-7s %-5s %-5s %-5s %-5s %-5s %-14s\n" "${msg1}" "${LIVE}" "${SITE_TYPE}" "${SSL}" "${HSTS}" "${WEBSOCKET}" "${EXPLOITS}" "${SECURE}" "${PROXYHOST_FULL}"
|
||||||
|
else
|
||||||
|
printf "%-28s %-5s %-7s %-5s %-5s %-5s %-5s %-5s %-14s\n" "${msg1}" "${LIVE}" "${SITE_TYPE}" "${SSL}" "${HSTS}" "${WEBSOCKET}" "${EXPLOITS}" "${SECURE}" "${PROXYHOST_FULL}"
|
||||||
|
fi
|
||||||
|
echo -en "${idsCL[Default]}"
|
||||||
|
SITELIST[${i}]=${SITENAME}
|
||||||
|
i=`expr $i + 1`
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo -e "\n${idsCL[LightRed]}No sites were found matching '${SEARCH}'${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo
|
||||||
|
if [ ${EDIT} -eq 1 ]; then
|
||||||
|
DIVIDER . yellow ${dl}
|
||||||
|
function exitspacing {
|
||||||
|
echo -e "\n\033[K\n\033[K"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
trap exitspacing EXIT
|
||||||
|
|
||||||
|
while [ "${editc^}" != "Q" ]; do
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K (${idsCL[Green]}A${idsCL[Default]})dd New Site, (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Yellow]}Q${idsCL[Default]})uit"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[7A"
|
||||||
|
echo -en "${idsCL[LightCyan]}Enter the site number you want to edit: ${idsCL[Default]}"
|
||||||
|
read siteid
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ "${siteid^}" == "Q" ]; then
|
||||||
|
echo -e "\033[K"
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${siteid^}" == "A" ]; then
|
||||||
|
echo -en "\033[1A\033[K\r"
|
||||||
|
${NM_SCRIPT} newsite
|
||||||
|
[ "${SEARCH}" != "0" ] && SITEINFO -edit -search ${SEARCH} || SITEINFO -edit
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${siteid^}" == "R" ]; then
|
||||||
|
[ "${SEARCH}" != "0" ] && SITEINFO -edit -search ${SEARCH} || SITEINFO -edit
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
elif [ "${SITELIST[${siteid}]}" != "" ]; then
|
||||||
|
|
||||||
|
EDITSITE
|
||||||
|
|
||||||
|
else #no site
|
||||||
|
echo -e "\033[3A"; for (( c=1; c<=3; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[4A"
|
||||||
|
[ "${siteid}" == "" ] && echo -e "\033[2A"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e "\nNo site information found for this node"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
# end=`date +%s`
|
||||||
|
# runtime=$((end-start))
|
||||||
|
# echo "runtime: ${runtime}"
|
||||||
|
# echo
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
EDITSITE(){
|
||||||
|
SITENAME=${SITELIST[${siteid}]}
|
||||||
|
sitefile=${gosite}/${SITENAME}.conf
|
||||||
|
if [ -f ${sitefile} ]; then
|
||||||
|
siteconfig=$(cat ${sitefile})
|
||||||
|
if [ "$(echo "${siteconfig}" | grep \#ssl_certificate)" != "" ]; then
|
||||||
|
SSL='-'
|
||||||
|
SUBJECTNAMES=""
|
||||||
|
else
|
||||||
|
SSL='Yes'
|
||||||
|
|
||||||
|
certpath=$(echo "${siteconfig}" | grep ssl_certificate_key)
|
||||||
|
certpath=${certpath%/*}
|
||||||
|
certpath=${certpath#* }
|
||||||
|
SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
|
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(echo "${siteconfig}" | grep include/proxy.conf)" != "" ]; then
|
||||||
|
SITE_TYPE='Proxy'
|
||||||
|
PROXYHOST=$(echo "${siteconfig}" | grep 'set $server')
|
||||||
|
PROXYHOST=${PROXYHOST#*\"}; PROXYHOST=${PROXYHOST%\"*}
|
||||||
|
SERVERNAMES=$(echo "${siteconfig}" | grep 'server_name')
|
||||||
|
SERVERNAMES=${SERVERNAMES//;/}
|
||||||
|
SERVERNAMES=${SERVERNAMES#* }
|
||||||
|
SERVERNAMES=${SERVERNAMES// /,}
|
||||||
|
PROXYSCHEME=$(echo "${siteconfig}" | grep 'set $forward_scheme')
|
||||||
|
PROXYSCHEME=${PROXYSCHEME##* }; PROXYSCHEME=${PROXYSCHEME%;*}
|
||||||
|
PROXYPORT=$(echo "${siteconfig}" | grep 'set $port')
|
||||||
|
PROXYPORT=${PROXYPORT##* }; PROXYPORT=${PROXYPORT%;*}
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
SITE_TYPE='HTTP'
|
||||||
|
fi
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/hsts-support.conf')" != "" ] && HSTS='-' || HSTS='Yes'
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/websocket-support.conf')" != "" ] && WEBSOCKET='-' || WEBSOCKET='Yes'
|
||||||
|
[ "$(echo "${siteconfig}" | grep '\#include conf.d/include/block-exploits.conf')" != "" ] && EXPLOITS='-' || EXPLOITS='Yes'
|
||||||
|
if [ "$(echo "${siteconfig}" | grep '\#include conf.d/include/secure-access.conf')" == "" ]; then
|
||||||
|
sitefacline=$(echo "${autheliaconfig}" | grep -Fn ${SITENAME} | sort | tail -n1)
|
||||||
|
sitefacline=${sitefacline%%:*}
|
||||||
|
if [ "${sitefacline}" == "" ]; then
|
||||||
|
SECURE='error'
|
||||||
|
elif [ ${sitefacline} -lt ${onefacline} ]; then
|
||||||
|
SECURE='1FA'
|
||||||
|
elif [ ${sitefacline} -lt ${twofacline} ]; then
|
||||||
|
SECURE='2FA'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
SECURE='-'
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -f ${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled/${SITENAME}.conf ] && LIVE='Yes' || LIVE='-'
|
||||||
|
|
||||||
|
else
|
||||||
|
LIVE='Yes'
|
||||||
|
SITENAME=${MAIN_SITE}
|
||||||
|
SITE_TYPE=${SITE_TYPE^}
|
||||||
|
SERVERNAMES=${NEW_SITE}
|
||||||
|
PROXYHOST=${PROXYHOST}
|
||||||
|
PROXYSCHEME=${PROXYSCHEME}
|
||||||
|
PROXYPORT=${PROXYPORT}
|
||||||
|
SSL='Yes'
|
||||||
|
HSTS='Yes'
|
||||||
|
WEBSOCKET='-'
|
||||||
|
EXPLOITS='-'
|
||||||
|
SECURE='-'
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
editc=0
|
||||||
|
until [ "${editc^}" = "C" ]; do
|
||||||
|
echo -e "\033[K${idsCL[White]}E) Site Enabled: ${idsCL[Cyan]}${idsST[Bold]}${LIVE}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}0) Site Address(es): ${idsCL[Cyan]}${idsST[Bold]}${SERVERNAMES//,/, }${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}1) Site Type: ${idsCL[Cyan]}${idsST[Bold]}${SITE_TYPE}${idsST[Reset]}"
|
||||||
|
echo -en "\033[K${idsCL[White]}2) SSL Secure: ${idsCL[Cyan]}${idsST[Bold]}${SSL}${idsST[Reset]}"
|
||||||
|
[ "${SUBJECTNAMES}" != "" ] && echo -e " ${idsCL[Cyan]}[SSL Names: ${idsCL[Yellow]}${SUBJECTNAMES}${idsCL[Cyan]}; expires ${idsCL[Yellow]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Cyan]}]" || echo
|
||||||
|
echo -e "\033[K${idsCL[White]}3) HSTS Enabled: ${idsCL[Cyan]}${idsST[Bold]}${HSTS}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}4) Web Sockets: ${idsCL[Cyan]}${idsST[Bold]}${WEBSOCKET}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}5) Exploits Block: ${idsCL[Cyan]}${idsST[Bold]}${EXPLOITS}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}6) Secured Access: ${idsCL[Cyan]}${idsST[Bold]}${SECURE}${idsST[Reset]}"
|
||||||
|
if [ "${SITE_TYPE}" == "Proxy" ]; then
|
||||||
|
echo -e "\033[K${idsCL[White]}7) Proxy Address: ${idsCL[Cyan]}${idsST[Bold]}${PROXYHOST}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}8) Proxy Scheme: ${idsCL[Cyan]}${idsST[Bold]}${PROXYSCHEME}${idsST[Reset]}"
|
||||||
|
echo -e "\033[K${idsCL[White]}9) Proxy Port: ${idsCL[Cyan]}${idsST[Bold]}${PROXYPORT}${idsST[Reset]}"
|
||||||
|
else
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
fi
|
||||||
|
if [ "${editc}" != "s" ]; then
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K (${idsCL[Green]}S${idsCL[Default]})ave Site, (${idsCL[Red]}D${idsCL[Default]})elete Site, (${idsCL[Yellow]}C${idsCL[Default]})ancel, (${idsCL[Yellow]}Q${idsCL[Default]})uit"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[K"
|
||||||
|
echo -e "\033[7A"
|
||||||
|
|
||||||
|
echo -en "\033[K\n\033[K\r${idsCL[LightCyan]}Enter the item number to edit: ${idsCL[Default]}"
|
||||||
|
read -n 1 editc
|
||||||
|
|
||||||
|
case "${editc}" in
|
||||||
|
0) echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[KEnter new Server Names (comma seperated): "
|
||||||
|
read -i "${SERVERNAMES}" -e SERVERNAMES
|
||||||
|
SERVERNAMES=${SERVERNAMES//, /,}
|
||||||
|
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
|
||||||
|
;;
|
||||||
|
1) [ "${SITE_TYPE}" == "HTTP" ] && SITE_TYPE='Proxy' || SITE_TYPE='HTTP';;
|
||||||
|
2) [ "${SSL}" == "-" ] && SSL='Yes' || SSL='-';;
|
||||||
|
3) [ "${HSTS}" == "-" ] && HSTS='Yes' || HSTS='-';;
|
||||||
|
4) [ "${WEBSOCKET}" == "-" ] && WEBSOCKET='Yes' || WEBSOCKET='-';;
|
||||||
|
5) [ "${EXPLOITS}" == "-" ] && EXPLOITS='Yes' || EXPLOITS='-';;
|
||||||
|
6) if [ "${SECURE}" == "-" ]; then
|
||||||
|
SECURE='1FA'
|
||||||
|
elif [ "${SECURE}" == "1FA" ]; then
|
||||||
|
SECURE='2FA'
|
||||||
|
elif [ "${SECURE}" == "2FA" ]; then
|
||||||
|
SECURE='-'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
7) echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[KEnter new Proxy Address: "
|
||||||
|
read -i "${PROXYHOST}" -e PROXYHOST
|
||||||
|
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
|
||||||
|
;;
|
||||||
|
8) [ "${PROXYSCHEME}" == "http" ] && PROXYSCHEME='https' || PROXYSCHEME='http';;
|
||||||
|
9) echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[KEnter new Proxy Port: "
|
||||||
|
read -i "${PROXYPORT}" -e PROXYPORT
|
||||||
|
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
|
||||||
|
;;
|
||||||
|
|
||||||
|
[Cc])
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[16A"; for (( c=1; c<=16; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[16A"
|
||||||
|
echo -e "\n\n\n\n\n\n\n\n"
|
||||||
|
;;
|
||||||
|
[Dd])
|
||||||
|
echo -e "\033[K\n\033[K"
|
||||||
|
echo -en "\033[K${idsCL[LightCyan]}Are you sure you wish to delete the site and associated SSL if applicable (y/N): ${idsCL[Default]}"
|
||||||
|
read -n 1 delconfirm
|
||||||
|
case "${delconfirm}" in
|
||||||
|
[Yy])
|
||||||
|
echo -en "\n\n${idsCL[LightCyan]}Removing site ... "
|
||||||
|
DELSITE -site ${SITENAME} -ssl yes >/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done\n${idsCL[Default]}"
|
||||||
|
[ "${SEARCH}" != "0" ] && SITEINFO -edit -search ${SEARCH} || SITEINFO -edit
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[ "${delconfirm}" != "" ] && echo
|
||||||
|
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
[Ee]) [ "${LIVE}" == "-" ] && LIVE='Yes' || LIVE='-';;
|
||||||
|
[Qq])
|
||||||
|
echo -e "\033[K"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
[ "${editc}" == "" ] && echo -e "\033[14A" || echo -e "\033[13A"
|
||||||
|
else
|
||||||
|
for (( c=1; c<=6; c++ )); do echo -e "\033[K"; done; echo -e "\033[7A"
|
||||||
|
echo -en "\n\033[K${idsCL[LightCyan]}Confirm changes (Y/n): ${idsCL[Default]}"
|
||||||
|
read -n 1 confirm
|
||||||
|
case "${confirm}" in
|
||||||
|
[Nn])
|
||||||
|
editc=C
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[15A"; for (( c=1; c<=15; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[19A"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[ "${confirm}" != "" ] && echo
|
||||||
|
if [ "${CERTTEST}" != "" ] && [ "${CERTTEST}" != "0" ]; then
|
||||||
|
echo -e "${idsCL[LightYellow]}${idsST[Bold]}### REQUESTING CERT IN TEST MODE ###${idsST[Reset]}${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
if [ "${NEWSITE}" == "true" ]; then
|
||||||
|
echo -en "\033[1A\033[K\r${idsCL[LightCyan]}Creating new site ... ${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -en "\033[1A\033[K\r${idsCL[LightCyan]}Configuring changes ... ${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
NEWPROXYSITE_CREATE ${SITENAME} ${SERVERNAMES} ${PROXYHOST} ${PROXYPORT} ${PROXYSCHEME} ${WEBSOCKET} ${HSTS} ${EXPLOITS} ${SECURE} ${SSL} ${CERTTEST} ###>/dev/null 2>&1
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo -en "\033[1A\033[K\r${idsCL[LightCyan]}Restarting NGINX on all '${RUN_NODE_TYPE}' Nodes ... ${idsCL[Default]}"
|
||||||
|
# if [[ "${RUN_NODE_IP}" != "10.6.1"* ]]; then
|
||||||
|
SERVICE_MGMT nginx restart
|
||||||
|
# else
|
||||||
|
# /bin/systemctl restart nginx
|
||||||
|
# fi
|
||||||
|
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ "${NEWSITE}" == "true" ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo -en "\033[K\r${idsCL[LightCyan]}Continue or Exit (C/e): ${idsCL[Default]}"
|
||||||
|
read -n1 con
|
||||||
|
case "${con}" in
|
||||||
|
[Ee])
|
||||||
|
# echo -e "\n\033[K\n\033[K"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
editc=C
|
||||||
|
echo -e "\r\033[K\n\r\033[K\n\r\033[K"
|
||||||
|
echo -e "\033[19A"; for (( c=1; c<=19; c++ )); do echo -e "\r\033[K"; done; echo -e "\033[22A"
|
||||||
|
[ "${SEARCH}" != "0" ] && SITEINFO -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1245
inc/status.inc
Executable file
1245
inc/status.inc
Executable file
File diff suppressed because it is too large
Load Diff
306
inc/vCenter-SSL.ps1
Normal file
306
inc/vCenter-SSL.ps1
Normal file
@@ -0,0 +1,306 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
# -----------------------------------------------------------------------------------
|
||||||
|
# vCenter Machine SSL Automation Script (vSphere 8.0 U3)
|
||||||
|
# - Uses Let's Encrypt via Posh-ACME and PowerDNS
|
||||||
|
# - Skips issuance if existing cert has >30 days
|
||||||
|
# - Pushes cert into vCenter using Set-VIMachineCertificate
|
||||||
|
# - Adds CA chain to trusted store
|
||||||
|
# - Restarts vpxd (Restart-VIApplianceService)
|
||||||
|
# - Performs Veeam Rescan-VBREntity when certificate changes
|
||||||
|
# - Fully non-interactive (no prompts)
|
||||||
|
# -----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
. /opt/idssys/nodemgmt/conf/powerwall/settings.ps1
|
||||||
|
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
$ConfirmPreference = 'None' # Disable all PowerCLI confirmations
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Logging
|
||||||
|
# ----------------------------
|
||||||
|
$LogFile = "/opt/idssys/nodemgmt/logs/vc-ssl.log"
|
||||||
|
|
||||||
|
function Write-Log {
|
||||||
|
param(
|
||||||
|
[ValidateSet('INFO','WARN','ERROR')]
|
||||||
|
[string]$Level,
|
||||||
|
[string]$Message,
|
||||||
|
[string]$ForegroundColor
|
||||||
|
)
|
||||||
|
|
||||||
|
$ts = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
|
||||||
|
$line = "[$ts] $Level : $Message"
|
||||||
|
|
||||||
|
if ($ForegroundColor) {
|
||||||
|
Write-Host $line -ForegroundColor $ForegroundColor
|
||||||
|
} else {
|
||||||
|
Write-Host $line
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
$dir = Split-Path $LogFile
|
||||||
|
if (-not (Test-Path $dir)) {
|
||||||
|
New-Item -ItemType Directory -Path $dir -Force | Out-Null
|
||||||
|
}
|
||||||
|
Add-Content -Path $LogFile -Value $line
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Show-Failure {
|
||||||
|
param([System.Management.Automation.ErrorRecord]$ErrorRecord)
|
||||||
|
$msg = $ErrorRecord.Exception.Message
|
||||||
|
|
||||||
|
Write-Log ERROR $msg Red
|
||||||
|
Write-Host "======================================================" -ForegroundColor Red
|
||||||
|
Write-Host "ERROR: $msg" -ForegroundColor Red
|
||||||
|
Write-Host "======================================================" -ForegroundColor Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Constants
|
||||||
|
# ----------------------------
|
||||||
|
$RenewalWindow = 30
|
||||||
|
$DnsSleep = 15
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Load PowerCLI + Posh-ACME
|
||||||
|
# ----------------------------
|
||||||
|
Write-Log INFO "Loading Modules..."
|
||||||
|
try {
|
||||||
|
if (-not (Get-Module -ListAvailable -Name VCF.PowerCLI)) {
|
||||||
|
Install-Module VCF.PowerCLI -Force -Scope AllUsers -AllowClobber
|
||||||
|
}
|
||||||
|
|
||||||
|
Import-Module VCF.PowerCLI -ErrorAction Stop *>$null
|
||||||
|
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false `
|
||||||
|
-ParticipateInCEIP:$false -DisplayDeprecationWarnings:$false | Out-Null
|
||||||
|
|
||||||
|
Write-Log INFO "VCF.PowerCLI loaded."
|
||||||
|
} catch { Show-Failure $_ }
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (-not (Get-Module -ListAvailable -Name Posh-ACME)) {
|
||||||
|
Install-Module Posh-ACME -Force -Scope AllUsers
|
||||||
|
}
|
||||||
|
Import-Module Posh-ACME -ErrorAction Stop *>$null
|
||||||
|
Write-Log INFO "Posh-ACME loaded."
|
||||||
|
} catch { Show-Failure $_ }
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Connect to vCenter
|
||||||
|
# ----------------------------
|
||||||
|
try {
|
||||||
|
Write-Log INFO "Connecting to vCenter $VCENTERHOST..."
|
||||||
|
Connect-VIServer -Server $VCENTERHOST -User $VCENTERUSER -Password $VCENTERPASS -Force | Out-Null
|
||||||
|
|
||||||
|
Write-Host "========================================" -ForegroundColor Green
|
||||||
|
Write-Host "SUCCESS: Connected to vCenter." -ForegroundColor Green
|
||||||
|
Write-Host "========================================" -ForegroundColor Green
|
||||||
|
} catch { Show-Failure $_ }
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Sanity check: list VMs
|
||||||
|
# ----------------------------
|
||||||
|
try {
|
||||||
|
$vms = Get-VM
|
||||||
|
Write-Log INFO "Retrieved $($vms.Count) VMs from vCenter."
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "Failed to enumerate VMs: $($_.Exception.Message)" Orange
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Detect existing Posh-ACME cert
|
||||||
|
# ----------------------------
|
||||||
|
$paCert = $null
|
||||||
|
$needNewCert = $false
|
||||||
|
|
||||||
|
try {
|
||||||
|
$allCerts = Get-PACertificate -List
|
||||||
|
if ($allCerts) {
|
||||||
|
Write-Log INFO "Found $($allCerts.Count) Posh-ACME cert(s)."
|
||||||
|
$paCert = $allCerts |
|
||||||
|
Where-Object { $_.MainDomain -eq $VCENTERHOST -or ($_.AllSANs -contains $VCENTERHOST) } |
|
||||||
|
Sort-Object NotAfter -Descending |
|
||||||
|
Select-Object -First 1
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "Failed to query Posh-ACME certificates: $($_.Exception.Message)" Orange
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($paCert) {
|
||||||
|
$daysLeft = ($paCert.NotAfter - (Get-Date)).TotalDays
|
||||||
|
Write-Log INFO ("Existing cert expires {0} (~{1:N0} days)." -f $paCert.NotAfter, $daysLeft)
|
||||||
|
|
||||||
|
if ($daysLeft -le $RenewalWindow) {
|
||||||
|
Write-Log INFO "Existing cert within $RenewalWindow days. ACME issuance required."
|
||||||
|
$needNewCert = $true
|
||||||
|
} else {
|
||||||
|
Write-Log INFO "Skipping issuance — certificate valid >$RenewalWindow days."
|
||||||
|
$needNewCert = $false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Write-Log WARN "No existing cert found — issuance required." Orange
|
||||||
|
$needNewCert = $true
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# ACME issuance (only if needed)
|
||||||
|
# ----------------------------
|
||||||
|
if ($needNewCert) {
|
||||||
|
try {
|
||||||
|
Write-Log INFO "Requesting new ACME certificate via Posh-ACME..."
|
||||||
|
|
||||||
|
$pluginArgs = @{
|
||||||
|
PowerDNSApiHost = $WDNSHOST
|
||||||
|
PowerDNSApiKey = (ConvertTo-SecureString $PDNSAPI -AsPlainText -Force)
|
||||||
|
PowerDNSUseTLS = $true
|
||||||
|
PowerDNSPort = 443
|
||||||
|
PowerDNSServerName = 'localhost'
|
||||||
|
}
|
||||||
|
|
||||||
|
# Posh-ACME v4 syntax:
|
||||||
|
New-PACertificate `
|
||||||
|
-Domain $VCENTERHOST `
|
||||||
|
-Plugin PowerDNS `
|
||||||
|
-PluginArgs $pluginArgs `
|
||||||
|
-Contact $ACMEEMAIL `
|
||||||
|
-AcceptTOS `
|
||||||
|
-DnsSleep $DnsSleep `
|
||||||
|
-Verbose `
|
||||||
|
-Force
|
||||||
|
|
||||||
|
$paCert = Get-PACertificate
|
||||||
|
Write-Log INFO ("New certificate issued: NotAfter={0}" -f $paCert.NotAfter)
|
||||||
|
} catch {
|
||||||
|
Write-Log ERROR ("ACME issuance failed: {0}" -f $_.Exception.Message) Red
|
||||||
|
if (-not $paCert) {
|
||||||
|
Write-Log ERROR "No fallback certificate exists — aborting." Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
Write-Log WARN "Using existing Posh-ACME certificate." Orange
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not $paCert) {
|
||||||
|
Write-Log ERROR "No usable certificate available — aborting." Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($needNewCert) {
|
||||||
|
# # ----------------------------
|
||||||
|
# # Certificate file resolution
|
||||||
|
# # ----------------------------
|
||||||
|
$certFolder = Split-Path $paCert.CertFile -Parent
|
||||||
|
|
||||||
|
$certPath = Join-Path $certFolder "cert.cer"
|
||||||
|
$keyPath = Join-Path $certFolder "cert.key"
|
||||||
|
$chainPath = Join-Path $certFolder "chain.cer"
|
||||||
|
|
||||||
|
Write-Log INFO "Using cert folder: $certFolder"
|
||||||
|
Write-Log INFO " CERT : $certPath"
|
||||||
|
Write-Log INFO " KEY : $keyPath"
|
||||||
|
Write-Log INFO " CHAIN: $chainPath"
|
||||||
|
|
||||||
|
foreach ($f in @($certPath,$keyPath,$chainPath)) {
|
||||||
|
if (-not (Test-Path $f)) {
|
||||||
|
Write-Log ERROR "Missing cert file: $f" Red
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Add CA chain to trusted store (remove duplicates)
|
||||||
|
# ----------------------------
|
||||||
|
try {
|
||||||
|
Write-Log INFO "Cleaning old CA trust entries..."
|
||||||
|
$issuer = ($paCert.Issuer)
|
||||||
|
$existingCA = Get-VITrustedCertificate | Where-Object { $_.Subject -eq $issuer }
|
||||||
|
foreach ($ca in $existingCA) {
|
||||||
|
Remove-VITrustedCertificate -Certificate $ca -Confirm:$false -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
|
||||||
|
$pemChain = Get-Content $chainPath -Raw
|
||||||
|
Write-Log INFO "Adding CA chain to vCenter trust store..."
|
||||||
|
Add-VITrustedCertificate -PemCertificateOrChain $pemChain -VCenterOnly -Confirm:$false | Out-Null
|
||||||
|
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "Failed to manage CA trust entries: $($_.Exception.Message)" -FvoregroundColor Orange
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Compare current vCenter cert
|
||||||
|
# ----------------------------
|
||||||
|
$needPush = $true
|
||||||
|
try {
|
||||||
|
$vcCert = Get-VIMachineCertificate -VCenterOnly -ErrorAction Stop
|
||||||
|
Write-Log INFO ("Current vCenter cert: Subject={0} NotAfter={1}" -f $vcCert.Subject, $vcCert.NotValidAfter)
|
||||||
|
|
||||||
|
if ($vcCert.Thumbprint -eq $paCert.Thumbprint) {
|
||||||
|
Write-Log INFO "vCenter already using this certificate."
|
||||||
|
$needPush = $false
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "Unable to read vCenter cert, assuming update required." Orange
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Apply new certificate
|
||||||
|
# ----------------------------
|
||||||
|
if ($needPush) {
|
||||||
|
|
||||||
|
Write-Log INFO "Applying new Machine SSL certificate..."
|
||||||
|
|
||||||
|
$leafPem = Get-Content $certPath -Raw
|
||||||
|
$keyPem = Get-Content $keyPath -Raw
|
||||||
|
|
||||||
|
try {
|
||||||
|
Set-VIMachineCertificate -PemCertificate $leafPem -PemKey $keyPem -Confirm:$false | Out-Null
|
||||||
|
|
||||||
|
Write-Host "===========================================================" -ForegroundColor Green
|
||||||
|
Write-Host "SUCCESS: vCenter Machine SSL certificate updated." ForegroundColor Green
|
||||||
|
Write-Host "===========================================================" -ForegroundColor Green
|
||||||
|
|
||||||
|
Write-Log INFO "Certificate updated successfully."
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Restart vpxd service
|
||||||
|
# ----------------------------
|
||||||
|
try {
|
||||||
|
Write-Log INFO "Restarting vpxd via Restart-VIApplianceService..."
|
||||||
|
$svc = Get-VIApplianceService -Name 'vpxd' -ErrorAction Stop
|
||||||
|
$null = $svc | Restart-VIApplianceService -Confirm:$false
|
||||||
|
Write-Log INFO "vpxd restarted successfully."
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "vpxd restart failed: $($_.Exception.Message)" Orange
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Trigger Veeam rescan
|
||||||
|
# ----------------------------
|
||||||
|
if ($VEEAMHOSTSSH) {
|
||||||
|
try {
|
||||||
|
Write-Log INFO "Triggering Veeam host rescan on $VEEAMHOSTSSH..."
|
||||||
|
$veeamCmd = "Rescan-VBREntity -AllHosts"
|
||||||
|
$sshCmd = "ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 $VEEAMHOSTSSH '$veeamCmd'"
|
||||||
|
$result = bash -c $sshCmd
|
||||||
|
Write-Log INFO "Veeam rescan result: $result"
|
||||||
|
} catch {
|
||||||
|
Write-Log WARN "Veeam rescan failed: $($_.Exception.Message)" Orange
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch {
|
||||||
|
Show-Failure $_
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
Write-Log INFO "No certificate update needed. Skipping vpxd restart + Veeam rescan."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# ----------------------------
|
||||||
|
# Script Complete
|
||||||
|
# ----------------------------
|
||||||
|
Write-Host "==========================================================" -ForegroundColor Green
|
||||||
|
Write-Host "INFO: Script complete. Log: $LogFile" -ForegroundColor Green
|
||||||
|
Write-Host "==========================================================" -ForegroundColor Green
|
||||||
247
inc/vCenter-SSL.ps1.bak
Normal file
247
inc/vCenter-SSL.ps1.bak
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
. /opt/idssys/nodemgmt/conf/powerwall/settings.ps1
|
||||||
|
|
||||||
|
function Show-Failure {
|
||||||
|
$global:helpme = $body
|
||||||
|
$global:helpmoref = $moref
|
||||||
|
$global:result = $_.Exception.Response.GetResponseStream()
|
||||||
|
$global:reader = New-Object System.IO.StreamReader($global:result)
|
||||||
|
$global:responseBody = $global:reader.ReadToEnd();
|
||||||
|
Write-Host -BackgroundColor:Black -ForegroundColor:Red "Status: A system exception was caught."
|
||||||
|
Write-Host -BackgroundColor:Black -ForegroundColor:Red $global:responsebody
|
||||||
|
Write-Host -BackgroundColor:Black -ForegroundColor:Red "The request body has been saved to `$global:helpme"
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
$vCenterURL = $VCENTERHOST
|
||||||
|
$CommonName = $VCENTERHOST
|
||||||
|
$EmailContact = $ACMEEMAIL
|
||||||
|
|
||||||
|
#[string]$userName = $VCENTERUSER
|
||||||
|
#[string]$userPassword = $VCENTERPASS
|
||||||
|
#[SecureString]$secureString = ConvertTo-SecureString $VCENTERPASS -AsPlainText -Force
|
||||||
|
[PSCredential]$Credential = New-Object System.Management.Automation.PSCredential -ArgumentList $VCENTERUSER, (ConvertTo-SecureString $VCENTERPASS -AsPlainText -Force)
|
||||||
|
|
||||||
|
$pArgs = @{
|
||||||
|
PowerDNSApiHost = $WDNSHOST
|
||||||
|
PowerDNSApiKey = $PDNSAPI | ConvertTo-SecureString -AsPlainText -Force
|
||||||
|
#PowerDNSApiKey = (Read-Host "API Key" -AsSecureString)
|
||||||
|
PowerDNSUseTLS = $true
|
||||||
|
PowerDNSPort = 443
|
||||||
|
PowerDNSServerName = 'localhost'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Write-Host "Checking for Required Module Posh-ACME" -ForegroundColor Green
|
||||||
|
|
||||||
|
if (Get-Module -ListAvailable -Name Posh-ACME) {
|
||||||
|
Write-Host "Posh-ACME Module Already Installed" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "Posh-ACME Module Not Found, Attempting to Install" -ForegroundColor Yellow
|
||||||
|
Write-Host "Restart of this Script is Required!" -ForegroundColor Yellow
|
||||||
|
Install-Module -Name Posh-ACME -Force -Confirm:$false
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
Do {
|
||||||
|
Write-host "Waiting to for Posh-ACME Module to be Loaded" -ForegroundColor Cyan
|
||||||
|
$PoshACME = Get-Module -ListAvailable -Name Posh-ACME
|
||||||
|
Start-Sleep -Seconds 5
|
||||||
|
}
|
||||||
|
While ( $PoshACME -eq $null )
|
||||||
|
|
||||||
|
# --- Importing the Posh-ACME Module.
|
||||||
|
if (Get-Module -ListAvailable -Name Posh-ACME) {
|
||||||
|
Write-Host "Importing Posh-ACME Module" -ForegroundColor Green
|
||||||
|
Import-Module -Name Posh-ACME -Force
|
||||||
|
}
|
||||||
|
Else {
|
||||||
|
Write-host "Something Went Wrong, Stopping Script" -ForegroundColor Red
|
||||||
|
Break
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((Get-PAServer).name -eq "LE_PROD") {
|
||||||
|
Write-Host "ACME Server Already Set to $((Get-PAServer).Name)" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "Setting ACME Server to LE_PROD" -ForegroundColor Yellow
|
||||||
|
Set-PAServer -DirectoryUrl LE_PROD
|
||||||
|
}
|
||||||
|
|
||||||
|
#Set-PAServer LE_PROD
|
||||||
|
|
||||||
|
$PAAccount = Get-PAAccount
|
||||||
|
If ($PAAccount) {
|
||||||
|
Write-host "ACME Account Found with Contact: "$($PAAccount).Contact.split(":")[1]""
|
||||||
|
}
|
||||||
|
Else {
|
||||||
|
Write-Host "ACME Account Not Found, Setting ACME Account with Contact $($EmailContact)"
|
||||||
|
New-PAAccount -Contact $EmailContact -AcceptTOS -Force -Confirm:$false
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not ([System.Management.Automation.PSTypeName]'ServerCertificateValidationCallback').Type) {
|
||||||
|
$certCallback = @"
|
||||||
|
using System;
|
||||||
|
using System.Net;
|
||||||
|
using System.Net.Security;
|
||||||
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
public class ServerCertificateValidationCallback
|
||||||
|
{
|
||||||
|
public static void Ignore()
|
||||||
|
{
|
||||||
|
if(ServicePointManager.ServerCertificateValidationCallback ==null)
|
||||||
|
{
|
||||||
|
ServicePointManager.ServerCertificateValidationCallback +=
|
||||||
|
delegate
|
||||||
|
(
|
||||||
|
Object obj,
|
||||||
|
X509Certificate certificate,
|
||||||
|
X509Chain chain,
|
||||||
|
SslPolicyErrors errors
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"@
|
||||||
|
Add-Type $certCallback
|
||||||
|
}
|
||||||
|
[ServerCertificateValidationCallback]::Ignore()
|
||||||
|
|
||||||
|
$auth = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($Credential.UserName + ':' + $Credential.GetNetworkCredential().Password))
|
||||||
|
$head = @{
|
||||||
|
'Authorization' = "Basic $auth"
|
||||||
|
}
|
||||||
|
|
||||||
|
$Params = @{
|
||||||
|
|
||||||
|
Method = "POST"
|
||||||
|
Headers = $head
|
||||||
|
Uri = "https://$vCenterURL/rest/com/vmware/cis/session"
|
||||||
|
}
|
||||||
|
|
||||||
|
#if ($IsCoreCLR) {
|
||||||
|
$Params.Add("SkipCertificateCheck", $true)
|
||||||
|
#}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$RestApi = Invoke-WebRequest @Params
|
||||||
|
$token = (ConvertFrom-Json $RestApi.Content).value
|
||||||
|
$session = @{'vmware-api-session-id' = $token }
|
||||||
|
Write-Host "Session Token Created Successfully" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Error "Unable to get Session Token, Terminating Script"
|
||||||
|
Show-Failure
|
||||||
|
}
|
||||||
|
|
||||||
|
$Question = "No"
|
||||||
|
$CheckSLL = Get-PACertificate -MainDomain $CommonName
|
||||||
|
$RUN=$true
|
||||||
|
If ((($CheckSLL).AllSANs) -eq $CommonName) {
|
||||||
|
$daysUntilExpiration = (New-TimeSpan -Start (Get-Date) -End $CheckSLL.NotAfter).Days
|
||||||
|
If ($daysUntilExpiration -lt 30) {
|
||||||
|
Write-Host "Renewing cert for '$("$CommonName")' " -ForegroundColor Yellow
|
||||||
|
Submit-Renewal $CommonName
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "Cert '$("$CommonName")' not ready for renewal" -ForegroundColor Yellow
|
||||||
|
$RUN=$false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
# --- Generate Free Let's Encrypt 90 Day SSL - Requires you to Validatr Domain Ownership.
|
||||||
|
If ($Question -match '^(No|N)$') {
|
||||||
|
If ($EmailContact) {
|
||||||
|
New-PACertificate $CommonName -AcceptTOS -Contact $EmailContact -PreferredChain "ISRG Root X1" -Plugin PowerDNS -PluginArgs $pArgs -Force
|
||||||
|
Write-Host "Requesting SSL for '$($CommonName)'" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
New-PACertificate $CommonName -AcceptTOS -PreferredChain "ISRG Root X1" -Plugin PowerDNS -PluginArgs $pArgs -Force
|
||||||
|
Write-Host "Requesting SSL for '$($CommonName)' Without Contact Email" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
If ($RUN -eq $true) {
|
||||||
|
|
||||||
|
Write-Host "Downloading ROOT CA" -ForegroundColor Green
|
||||||
|
$wc = [System.Net.WebClient]::new()
|
||||||
|
$rootCaPath = 'https://letsencrypt.org/certs/isrgrootx1.pem.txt'
|
||||||
|
$publishedHash = '22B557A27055B33606B6559F37703928D3E4AD79F110B407D04986E1843543D1'
|
||||||
|
$FileHash = Get-FileHash -InputStream ($wc.OpenRead($rootCaPath))
|
||||||
|
|
||||||
|
If ($FileHash.Hash -eq $publishedHash) {
|
||||||
|
$root_CA = (New-Object System.Net.WebClient).DownloadString($rootCaPath)
|
||||||
|
Write-Host "Successfully Validated ROOT CA" -ForegroundColor Green
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Throw "Could not validate ROOT CA - Please Raise an Issue at https://github.com/virtuallywired/Install-vCenterSSL"
|
||||||
|
}
|
||||||
|
Write-Host "Loading Certificate Files" -ForegroundColor Green
|
||||||
|
$sslcert = ((Get-Content ((Get-PACertificate).FullChainFile)) + $root_CA) -replace "`t|`n|`r", ""
|
||||||
|
$privatekey = Get-Content ((Get-PACertificate).KeyFile)
|
||||||
|
$fullchain = ((Get-Content ((Get-PACertificate).ChainFile)) + $root_CA) -replace "`t|`n|`r", ""
|
||||||
|
|
||||||
|
Write-Host "Reformating Certificates to String" -ForegroundColor Green
|
||||||
|
|
||||||
|
$cert = ((([string]$sslcert).Replace(" ", "")`
|
||||||
|
).Replace("-----BEGINCERTIFICATE-----", "-----BEGIN CERTIFICATE-----\n")`
|
||||||
|
).Replace("-----ENDCERTIFICATE-----", "\n-----END CERTIFICATE-----")
|
||||||
|
|
||||||
|
$key = ((([string]$privatekey).Replace(" ", "")`
|
||||||
|
).Replace("-----BEGINPRIVATEKEY-----", "-----BEGIN PRIVATE KEY-----\n")`
|
||||||
|
).Replace("-----ENDPRIVATEKEY-----", "\n-----END PRIVATE KEY-----")
|
||||||
|
|
||||||
|
$chain = ((([string]$fullchain).Replace(" ", "")`
|
||||||
|
).Replace("-----BEGINCERTIFICATE-----", "-----BEGIN CERTIFICATE-----\n")`
|
||||||
|
).Replace("-----ENDCERTIFICATE-----", "\n-----END CERTIFICATE-----"`
|
||||||
|
).Replace("----------", "-----\n-----")
|
||||||
|
|
||||||
|
Write-Host "Creating Payload" -ForegroundColor Green
|
||||||
|
|
||||||
|
$json = @"
|
||||||
|
{
|
||||||
|
"cert": "$cert",
|
||||||
|
"key": "$key",
|
||||||
|
"root_cert": "$chain"
|
||||||
|
}
|
||||||
|
"@
|
||||||
|
$Params = @{
|
||||||
|
Method = "PUT"
|
||||||
|
Headers = $session
|
||||||
|
Uri = "https://$vCenterURL/api/vcenter/certificate-management/vcenter/tls"
|
||||||
|
ContentType = "application/json"
|
||||||
|
Body = $json
|
||||||
|
}
|
||||||
|
|
||||||
|
#if ($IsCoreCLR) {
|
||||||
|
$Params.Add("SkipCertificateCheck", $true)
|
||||||
|
#}
|
||||||
|
Write-Host "Preparing to Replace Certificate." -ForegroundColor Green
|
||||||
|
|
||||||
|
try {
|
||||||
|
$Response = Invoke-WebRequest @Params
|
||||||
|
Write-Host "Response Code: $($Response.StatusCode)" -ForegroundColor Blue
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Error "Failed to Replace Certificate, Terminating Script"
|
||||||
|
Show-Failure
|
||||||
|
}
|
||||||
|
|
||||||
|
If ($Response.StatusCode -eq "204") {
|
||||||
|
Write-Host "Successfully Replaced Certificate" -ForegroundColor Green
|
||||||
|
Write-Host "After this operation completes, the services using the certificate will be restarted for the new certificate to take effect." -ForegroundColor Green
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
|
Write-Error "Failed to Replace Certificate, Please verify Correct Configuration and Retry"
|
||||||
|
}
|
||||||
|
|
||||||
|
ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 $VEEAMHOSTSSH "Rescan-VBREntity -AllHosts"
|
||||||
|
|
||||||
|
}
|
||||||
39
install.sh
Executable file
39
install.sh
Executable file
@@ -0,0 +1,39 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Wrapper script for install, for easier execution via URL.
|
||||||
|
|
||||||
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
|
||||||
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
||||||
|
|
||||||
|
echo -e "\n${idsCL[LightGreen]}NodeMgmt Installation Script${idsCL[Default]}"
|
||||||
|
|
||||||
|
$APTFUNC -y install wget curl git
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
git clone https://git.schroedercity.com/voltron/NodeMgmt.git /opt/idssys/nodemgmt
|
||||||
|
ln -s /opt/idssys/nodemgmt/run.sh /usr/local/bin/nodemgmt
|
||||||
|
ln -s /opt/idssys/nodemgmt/run.sh /usr/local/bin/nmg
|
||||||
|
/bin/chmod +x /opt/idssys/nodemgmt/*.sh
|
||||||
|
if [ ! -f /etc/rsyslog.d/01-ignore-session-messages.conf ]; then
|
||||||
|
cp /opt/idssys/nodemgmt/conf/rsyslog/01-ignore-session-messages.conf /etc/rsyslog.d/
|
||||||
|
systemctl restart rsyslog
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "/opt/idssys/defaults" ]; then
|
||||||
|
set -eu
|
||||||
|
git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "NODE_HOSTNAME=\"$(hostname)\"
|
||||||
|
#LOCAL_SERVICES=mysql,nginx,gitea,haproxy,keepalived,maxscale
|
||||||
|
|
||||||
|
#(optional)
|
||||||
|
# EMAIL_NOTICE=email@address.com
|
||||||
|
# PUSHOVER_APP_TOKEN=\"a2tk778mwe9b3tks1u16juas4rztjr\"
|
||||||
|
# PUSHOVER_USER_TOKEN=\"\"
|
||||||
|
|
||||||
|
" > /opt/idssys/nodemgmt/conf/settings.conf
|
||||||
|
|
||||||
|
echo -e "\n${idsCL[Yellow]}NodeMgmt has been Installed${idsCL[Default]}\n"
|
||||||
|
echo -e "To run, use the command: ${idsCL[Green]}nodemgmt${idsCL[Default]}\n\n"
|
||||||
|
|
||||||
|
exit 0
|
||||||
2513
nodemgmt-scripts.sh
2513
nodemgmt-scripts.sh
File diff suppressed because it is too large
Load Diff
99
run.sh
99
run.sh
@@ -1,45 +1,94 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# NodeMgmt Loader
|
# NodeMgmt Loader
|
||||||
|
|
||||||
action=$1
|
|
||||||
|
|
||||||
source /opt/idssys/defaults/colors.inc
|
[ "${2}" != "q" ] && source /opt/idssys/defaults/colors.inc
|
||||||
source /opt/idssys/defaults/default.inc
|
source /opt/idssys/defaults/default.inc
|
||||||
if [ ! -f /opt/idssys/settings/nodemgmt.conf ]; then
|
source /opt/idssys/nodemgmt/conf/settings.conf
|
||||||
source /opt/idssys/nodemgmt/settings.conf
|
|
||||||
else
|
|
||||||
source /opt/idssys/settings/nodemgmt.conf
|
|
||||||
fi
|
|
||||||
source /opt/idssys/nodemgmt/defaults.inc
|
source /opt/idssys/nodemgmt/defaults.inc
|
||||||
|
|
||||||
if [ "$1" != "service" ] && [ "$1" != "status-check" ] && [ "$1" != "nightlyrenew" ] && [ "$1" != "backup" ]; then
|
# if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]] && [ "${1}" != "status" ]; then
|
||||||
if [ "${1}" = "gui" ]; then
|
if [ "${1}" == "update" ] || ([ "${1}" == "update" ] && [ "${2}" == "nodes" ]) || ([ "${1}" == "update-nodes" ] && [ "${3}" != "sync" ]); then
|
||||||
DISP_HEADER
|
if [ "${1}" == "update-nodes" ] || [ "${2}" == "nodes" ]; then
|
||||||
|
echo -e "\n${idsCL[LightGreen]}Updating Node-Manager${idsCL[Default]}"
|
||||||
|
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
if [ "${1}" != "gui" ]; then
|
if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
|
||||||
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
if [ "${2}" != "q" ]; then
|
||||||
echo ""
|
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
cd /opt/idssys/defaults
|
cd /opt/idssys/defaults
|
||||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||||
|
if [ "${2}" != "q" ]; then
|
||||||
|
echo -en "\e[1A";
|
||||||
|
echo -e "${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
|
||||||
|
fi
|
||||||
git fetch origin master >/dev/null 2>&1
|
git fetch origin master >/dev/null 2>&1
|
||||||
git reset --hard origin/master >/dev/null 2>&1
|
git reset --hard origin/master >/dev/null 2>&1
|
||||||
git reflog expire --expire=now --all >/dev/null 2>&1
|
git reflog expire --expire=now --all >/dev/null 2>&1
|
||||||
git repack -ad >/dev/null 2>&1
|
git repack -ad >/dev/null 2>&1
|
||||||
git prune >/dev/null 2>&1
|
git prune >/dev/null 2>&1
|
||||||
git pull >/dev/null 2>&1
|
git pull >/dev/null 2>&1
|
||||||
|
git submodule update --remote >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
cd /opt/idssys/nodemgmt
|
cd ${NM_FOLDER}
|
||||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
# if [ "`git log --pretty=%H ...refs/heads/dev^ | head -n 1`" != "`git ls-remote origin -h refs/heads/dev |cut -f1`" ]; then
|
||||||
git fetch origin master >/dev/null 2>&1
|
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||||
git reset --hard origin/master >/dev/null 2>&1
|
goforup=0
|
||||||
git reflog expire --expire=now --all >/dev/null 2>&1
|
betacheck=$(${NM_SCRIPT} betacheck)
|
||||||
git repack -ad >/dev/null 2>&1
|
if [ "${betacheck}" == "true" ] && [ "${2}" != "q" ]; then
|
||||||
git prune >/dev/null 2>&1
|
echo -en "\e[1A";
|
||||||
git pull >/dev/null 2>&1
|
echo -en "\e[0K\r${idsCL[LightCyan]}This update is currently in BETA, proceed (N/y)? ${idsCL[Default]}"
|
||||||
|
read -n1 choice
|
||||||
|
case $choice in
|
||||||
|
[Yy]) echo; goforup=1;;
|
||||||
|
esac
|
||||||
|
elif [ "${betacheck}" == "true" ] && [ "${2}" == "q" ]; then
|
||||||
|
goforup=0
|
||||||
|
else
|
||||||
|
goforup=1
|
||||||
|
fi
|
||||||
|
if [ ${goforup} -eq 1 ]; then
|
||||||
|
if [ "${2}" != "q" ]; then
|
||||||
|
echo -en "\e[1A";
|
||||||
|
echo -e "\e[0K\r ${idsCL[LightCyan]}Updating NodeMgmt...${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
git fetch origin master >/dev/null 2>&1
|
||||||
|
git reset --hard origin/master >/dev/null 2>&1
|
||||||
|
# git fetch origin dev >/dev/null 2>&1
|
||||||
|
# git reset --hard origin/dev >/dev/null 2>&1
|
||||||
|
git reflog expire --expire=now --all >/dev/null 2>&1
|
||||||
|
git repack -ad >/dev/null 2>&1
|
||||||
|
git prune >/dev/null 2>&1
|
||||||
|
git pull >/dev/null 2>&1
|
||||||
|
git submodule update --remote >/dev/null 2>&1
|
||||||
|
/bin/chmod +x /opt/idssys/nodemgmt/*.sh 2>&1
|
||||||
|
source ${NM_FOLDER}/defaults.inc
|
||||||
|
if [ "${2}" != "q" ]; then
|
||||||
|
echo -en "\e[1A";
|
||||||
|
echo -e "\e[0K\r ${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[Green]}Updated to v${VERS}${idsCL[Default]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ "${2}" != "q" ]; then
|
||||||
|
echo -en "\e[1A";
|
||||||
|
echo -e "\e[0K\r ${idsCL[LightCyan]}No Updates Available${idsCL[Default]}"
|
||||||
|
elif [ "${2}" == "q" ]; then
|
||||||
|
echo -e "${idsCL[LightCyan]}No Updates Available${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
echo -en "\e[1A";
|
else
|
||||||
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Could not connect to 'git.schroedercity.com' for updates${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
/opt/idssys/nodemgmt/nodemgmt-scripts.sh ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}
|
|
||||||
|
[ ! -f /usr/local/bin/nmg ] && ln -s /opt/idssys/nodemgmt/run.sh /usr/local/bin/nmg
|
||||||
|
[ ! -f /usr/local/bin/ndmg ] && ln -s /opt/idssys/nodemgmt/run.sh /usr/local/bin/ndmg
|
||||||
|
|
||||||
|
${NM_SCRIPT} "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}" "${9}" "${10}" "${11}" "${12}" "${13}" "${14}" "${15}" "${16}" "${17}" "${18}" "${19}" "${20}" "${21}" "${22}" "${23}" "${24}" "${25}"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
226
runcerts.old
226
runcerts.old
@@ -1,226 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# My Cert Processes for LetsEncrypt
|
|
||||||
|
|
||||||
Color_Off='\033[0m'
|
|
||||||
Blue='\033[0;34m'
|
|
||||||
BBlue='\033[1;34m'
|
|
||||||
Green='\033[0;32m'
|
|
||||||
LGreen='\033[1;32m'
|
|
||||||
BOrange='\033[0;33m'
|
|
||||||
DGray='\033[1;30m'
|
|
||||||
Red='\033[10;31m'
|
|
||||||
LRed='\033[1;31m'
|
|
||||||
|
|
||||||
DAEMON='/usr/bin/certbot'
|
|
||||||
|
|
||||||
redirect_artica-ssl_files () {
|
|
||||||
MYDIR="/etc/nginx/certificates"
|
|
||||||
DIRS=`ls -l $MYDIR | egrep '^d' | awk '{print $9}'`
|
|
||||||
for DIR in $DIRS; do
|
|
||||||
if [ $DIR != 'new' ] && [ $DIR != 'default' ]
|
|
||||||
then
|
|
||||||
echo -e "${LGreen}Checking cetificate redirections for \"${LRed}${DIR}${Green}\"...${Color_Off}"
|
|
||||||
|
|
||||||
#rm -f /etc/nginx/certificates/${DIR}/CAkey.pem
|
|
||||||
#rm -f /etc/nginx/certificates/${DIR}/certificate.pem
|
|
||||||
#rm -f /etc/nginx/certificates/${DIR}/private_key.key
|
|
||||||
#mv /etc/nginx/certificates/${DIR}/CAkey.pem.bak /etc/nginx/certificates/${DIR}/CAkey.pem
|
|
||||||
#mv /etc/nginx/certificates/${DIR}/certificate.pem.bak /etc/nginx/certificates/${DIR}/certificate.pem
|
|
||||||
#mv /etc/nginx/certificates/${DIR}/private_key.key.bak /etc/nginx/certificates/${DIR}/private_key.key
|
|
||||||
|
|
||||||
if [ ! -f /etc/nginx/certificates/${DIR}/CAkey.pem.bak ]
|
|
||||||
then
|
|
||||||
certs_array=('certs1=(CAkey.pem private_key.key certificate.pem)' 'certs2=(chain.pem privkey.pem fullchain.pem)')
|
|
||||||
for elt in "${certs_array[@]}";do eval $elt;done
|
|
||||||
for ((i=0;i<=2;i++));
|
|
||||||
do
|
|
||||||
mv /etc/nginx/certificates/${DIR}/${certs1[${i}]} /etc/nginx/certificates/${DIR}/${certs1[${i}]}.bak
|
|
||||||
ln -s /etc/letsencrypt/live/${DIR}/${certs2[${i}]} /etc/nginx/certificates/${DIR}/${certs1[${i}]}
|
|
||||||
echo -e "${Green}Certificate redirected for \"${DGray}.../${DIR}/${BOrange}${certs1[${i}]}${Green}\"${Color_Off}"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
echo -e "${Green}No changes needed to be made at this time.${Color_Off}"
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
|
|
||||||
start)
|
|
||||||
sleep 15
|
|
||||||
echo -e "${BBlue}HAProxy Starting...${Color_Off}"
|
|
||||||
service haproxy start
|
|
||||||
ssh root@10.5.10.52 service haproxy start
|
|
||||||
ssh root@10.5.10.53 service haproxy start
|
|
||||||
echo -e "${BBlue}NGINX Reload...${Color_Off}"
|
|
||||||
service nginx reload
|
|
||||||
ssh root@10.5.10.52 service nginx reload
|
|
||||||
ssh root@10.5.10.53 service nginx reload
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
stop)
|
|
||||||
echo -e "${BBlue}HAProxy Stopping...${Color_Off}"
|
|
||||||
service haproxy stop
|
|
||||||
ssh root@10.5.10.52 service haproxy stop
|
|
||||||
ssh root@10.5.10.53 service haproxy stop
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
gogs-start)
|
|
||||||
echo -e "${BBlue}Gogs Starting...${Color_Off}"
|
|
||||||
service gogs start
|
|
||||||
ssh root@10.5.10.52 service gogs start
|
|
||||||
ssh root@10.5.10.53 service gogs start
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
gogs-stop)
|
|
||||||
echo -e "${BBlue}Gogs Stopping...${Color_Off}"
|
|
||||||
service gogs stop
|
|
||||||
ssh root@10.5.10.52 service gogs stop
|
|
||||||
ssh root@10.5.10.53 service gogs stop
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
gogs-restart)
|
|
||||||
echo -e "${BBlue}Gogs Restarting...${Color_Off}"
|
|
||||||
service gogs restart
|
|
||||||
ssh root@10.5.10.52 service gogs restart
|
|
||||||
ssh root@10.5.10.53 service gogs restart
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
nginx-start)
|
|
||||||
echo -e "${BBlue}NGINX Starting...${Color_Off}"
|
|
||||||
service nginx start
|
|
||||||
ssh root@10.5.10.52 service nginx start
|
|
||||||
ssh root@10.5.10.53 service nginx start
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
nginx-stop)
|
|
||||||
echo -e "${BBlue}NGINX Stopping...${Color_Off}"
|
|
||||||
service nginx stop
|
|
||||||
ssh root@10.5.10.52 service nginx stop
|
|
||||||
ssh root@10.5.10.53 service nginx stop
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
nginx-restart)
|
|
||||||
echo -e "${BBlue}NGINX Restarting...${Color_Off}"
|
|
||||||
service nginx restart
|
|
||||||
ssh root@10.5.10.52 service nginx restart
|
|
||||||
ssh root@10.5.10.53 service nginx restart
|
|
||||||
exit 0;;
|
|
||||||
|
|
||||||
reload)
|
|
||||||
service nginx reload
|
|
||||||
ssh root@10.5.10.52 service nginx reload
|
|
||||||
ssh root@10.5.10.53 service nginx reload
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
new)
|
|
||||||
# "$0" stop
|
|
||||||
echo -e "${Green}Requesting Certificate for '${BBlue}$2${Green}'...${Color_Off}"
|
|
||||||
# $DAEMON certonly --standalone -d $2
|
|
||||||
$DAEMON certonly --webroot -w /var/www/html -d $2
|
|
||||||
# chown -R root:letsencrypt /etc/letsencrypt
|
|
||||||
# chmod -R 6775 /etc/letsencrypt
|
|
||||||
# "$0" start
|
|
||||||
# redirect_artica-ssl_files
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
new-mass)
|
|
||||||
echo -e "${Green}Requesting Certificate for '${BBlue}$2${Green}'...${Color_Off}"
|
|
||||||
# $DAEMON certonly --standalone -d $2
|
|
||||||
$DAEMON certonly --webroot -w /var/www/html -d $2
|
|
||||||
# chown -R root:letsencrypt /etc/letsencrypt
|
|
||||||
# chmod -R 6775 /etc/letsencrypt
|
|
||||||
# redirect_artica-ssl_files
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
renew)
|
|
||||||
"$0" stop
|
|
||||||
echo -e "${Green}Renewing Certificates...${Color_Off}"
|
|
||||||
# $DAEMON renew
|
|
||||||
$DAEMON renew certonly --webroot -w /var/www/html -d $2
|
|
||||||
chown -R root:letsencrypt /etc/letsencrypt
|
|
||||||
chmod -R 6775 /etc/letsencrypt
|
|
||||||
"$0" start
|
|
||||||
# redirect_artica-ssl_files
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
nightlyrenew)
|
|
||||||
rm -f /opt/runcerts/cert-renewal-run-$(hostname)
|
|
||||||
"$0" stop >> /opt/runcerts/cert-renewal-run-$(hostname)
|
|
||||||
# $DAEMON renew >> /opt/runcerts/cert-renewal-run-$(hostname)
|
|
||||||
$DAEMON renew certonly --webroot -w /var/www/html -d $2 >> /opt/runcerts/cert-renewal-run-$(hostname)
|
|
||||||
chown -R root:letsencrypt /etc/letsencrypt
|
|
||||||
chmod -R 6775 /etc/letsencrypt
|
|
||||||
"$0" start >> /opt/runcerts/cert-renewal-run-$(hostname)
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
|
|
||||||
redirect-ssl)
|
|
||||||
redirect_artica-ssl_files
|
|
||||||
service nginx restart
|
|
||||||
|
|
||||||
read -n 1 -t 10 -p "Are you sure you wish to reboot (y/N)?" redirect_choice
|
|
||||||
case "$redirect_choice" in
|
|
||||||
[Yy]) if [ "$EUID" -ne 0 ]
|
|
||||||
then
|
|
||||||
service artica-webservices restart
|
|
||||||
fi
|
|
||||||
exit 0;;
|
|
||||||
esac
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo "Usage: $0 {new|new-mass|renew|redirect-ssl|stop|start}"
|
|
||||||
echo
|
|
||||||
echo "'new' - Creates a new certificate."
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples:"
|
|
||||||
echo " single-domain = 'runcerts new www.example.com'"
|
|
||||||
echo " multiple-domains = 'runcerts new www.example.com,dev.example.com,...'"
|
|
||||||
echo
|
|
||||||
echo "'new-mass' - Creates a new certificate, but doesnt go through the"
|
|
||||||
echo " process of stopping and restarting nginx each time"
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples (same as 'new'):"
|
|
||||||
echo " single-domain = 'runcerts new-mass www.example.com'"
|
|
||||||
echo " multiple-domains = 'runcerts new-mass www.example.com,dev.example.com,...'"
|
|
||||||
echo
|
|
||||||
echo "'renew' - Renews all certificates. This command could be run routinly by adding this"
|
|
||||||
echo " line into crontab: \"0 4 * * 0 /usr/local/bin/runcerts renew\""
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples:"
|
|
||||||
echo " 'runcerts renew'"
|
|
||||||
echo
|
|
||||||
echo "'redirect-ssl' - Redirects the configured Artica certificates to use the LetsEncrypt certificates"
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples:"
|
|
||||||
echo " 'runcerts redirect-ssl'"
|
|
||||||
echo
|
|
||||||
echo "'stop' - Stops any process that interfere with creating a standalone server"
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples:"
|
|
||||||
echo " 'runcerts stop'"
|
|
||||||
echo
|
|
||||||
echo "'start' - Starts any process that had interfered with creating a standalone server"
|
|
||||||
echo "---------------------------------------------------------------------------------------"
|
|
||||||
echo "examples:"
|
|
||||||
echo " 'runcerts start'"
|
|
||||||
echo
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
exit 0
|
|
||||||
@@ -9,16 +9,226 @@
|
|||||||
# Author: Matty < matty91 at gmail dot com >
|
# Author: Matty < matty91 at gmail dot com >
|
||||||
#
|
#
|
||||||
# Current Version: 3.30
|
# Current Version: 3.30
|
||||||
|
#
|
||||||
|
# Revision History:
|
||||||
|
#
|
||||||
|
# Version 3.31
|
||||||
|
# - Fixed the test for the -servername flag -- Kitson Consulting.
|
||||||
|
#
|
||||||
|
# Version 3.30
|
||||||
|
# - Use highest returncode for Nagios output -- Marcel Pennewiss
|
||||||
|
# - Set RETCODE to 3 (unknown) if a certificate file does not exist -- Marcel Pennewiss
|
||||||
|
# - Add a "-d" option to specify a directory or file mask pattern -- Marcel Pennewiss
|
||||||
|
# - Add a "-N" option to create summarized Nagios output -- Marcel Pennewiss
|
||||||
|
# - Cleaned up many formatting -- Marcel Pennewiss
|
||||||
|
#
|
||||||
|
# Versione 3.29a
|
||||||
|
# - Added option to specify email sender address
|
||||||
|
#
|
||||||
|
# Version 3.29
|
||||||
|
# - Add the openssl -servername flag if it shows up in help.
|
||||||
|
#
|
||||||
|
# Version 3.28
|
||||||
|
# - Added a DEBUG option to assist with debugging folks who use the script
|
||||||
|
#
|
||||||
|
# Version 3.27
|
||||||
|
# - Allow white spaces to exist in the certificate file list
|
||||||
|
# - Add an additional check to pick up bad / non-existent certificates
|
||||||
|
# - Add a check to look for the existence of a mail program. Error out if it's not present.
|
||||||
|
# - Enable the TLS -servername extension by default - Juergen Knaack & Johan Denoyer
|
||||||
|
#
|
||||||
|
# Version 3.26
|
||||||
|
# - Allow the certificate type (PEM, DER, NET) to be passed on the command line
|
||||||
|
#
|
||||||
|
# Version 3.25
|
||||||
|
# - Check for "no route to host" errors -- Dan Doyle
|
||||||
|
# - Set RETCODE to 3 (unknown) if a connection error occurs -- Dan Doyle
|
||||||
|
# - Documentation fixes
|
||||||
|
#
|
||||||
|
# Version 3.24
|
||||||
|
# - Utilize the -clcerts option to limit the results to client certificates - Eitan Katznelson
|
||||||
|
#
|
||||||
|
# Version 3.23
|
||||||
|
# - Fixed typo in date2julian routine -- Ken Cook
|
||||||
|
#
|
||||||
|
# Version 3.22
|
||||||
|
# - Change the validation option to "-V"
|
||||||
|
# - Add a "-v" option to specify a specific protocol version (ssl2, ssl3 or tls)
|
||||||
|
#
|
||||||
|
# Version 3.21
|
||||||
|
# - Adjust e-mail checking to avoid exiting if notifications aren't enabled -- Nick Anderson
|
||||||
|
# - Added the number of days until expiration to the Nagios output -- Nick Anderson
|
||||||
|
#
|
||||||
|
# Version 3.20
|
||||||
|
# - Fixed a bug in certificate length checking -- Tim Nowaczyk
|
||||||
|
#
|
||||||
|
# Version 3.19
|
||||||
|
# - Added check to verify the certificate retrieved is valid
|
||||||
|
#
|
||||||
|
# Version 3.18
|
||||||
|
# - Add support for connecting to FTP servers -- Paul A Sand
|
||||||
|
#
|
||||||
|
# Version 3.17
|
||||||
|
# - Add support for connecting to imap servers -- Joerg Pareigis
|
||||||
|
#
|
||||||
|
# Version 3.16
|
||||||
|
# - Add support for connecting to the mail sbmission port -- Luis E. Munoz
|
||||||
|
#
|
||||||
|
# Version 3.15
|
||||||
|
# - Adjusted the file checking logic to use the correct certificate -- Maciej Szudejko
|
||||||
|
# - Add sbin to the default search paths for OpenBSD compatibility -- Alex Popov
|
||||||
|
# - Use cut instead of substring processing to ensure compatibility -- Alex Popov
|
||||||
|
#
|
||||||
|
# Version 3.14
|
||||||
|
# - Fixed the Common Name parser to handle DN's where the CN is not the last item
|
||||||
|
# eg. EmailAddr -- Jason Brothers
|
||||||
|
# - Added the ability to grab the serial number -- Jason Brothers
|
||||||
|
# - Added the "-b" option to print results without a header -- Jason Brothers
|
||||||
|
# - Added the "-v" option for certificate validation -- Jason Brothers
|
||||||
|
#
|
||||||
|
# Version 3.13
|
||||||
|
# - Updated the subject line to include the hostname as well as
|
||||||
|
# the common name embedded in the X509 certificate (if it's
|
||||||
|
# available) -- idea proposed by Mike Burns
|
||||||
|
#
|
||||||
|
# Version 3.12
|
||||||
|
# - Updated the license to allow redistribution and modification
|
||||||
|
#
|
||||||
|
# Version 3.11
|
||||||
|
# - Added ability to comment out lines in files passed
|
||||||
|
# to the "-f" option -- Brett Stauner
|
||||||
|
# - Fixed comment next to file processing logic
|
||||||
|
#
|
||||||
|
# Version 3.10
|
||||||
|
# - Fixed POP3 port -- Simon Matter
|
||||||
|
#
|
||||||
|
# Version 3.9
|
||||||
|
# - Switched binary location logic to use which utility
|
||||||
|
#
|
||||||
|
# Version 3.8
|
||||||
|
# - Fixed display on 80 column displays
|
||||||
|
# - Cleaned up the formatting
|
||||||
|
#
|
||||||
|
# Version 3.7
|
||||||
|
# - Fixed bug in NAGIOS tests -- Ben Allen
|
||||||
|
#
|
||||||
|
# Version 3.6
|
||||||
|
# - Added support for certificates stored in PKCS#12 databases -- Ken Gallo
|
||||||
|
# - Cleaned up comments
|
||||||
|
# - Adjusted variables to be more consistent
|
||||||
|
#
|
||||||
|
# Version 3.5
|
||||||
|
# - Added support for NAGIOS -- Quanah Gibson-Mount
|
||||||
|
# - Added additional checks for mail -- Quanah Gibson-Mount
|
||||||
|
# - Convert tabs to spaces -- Quanah Gibson-Mount
|
||||||
|
# - Cleaned up usage() routine
|
||||||
|
# - Added additional checks for openssl
|
||||||
|
#
|
||||||
|
# Version 3.4
|
||||||
|
# - Added a missing "{" to line 364 -- Ken Gallo
|
||||||
|
# - Move mktemp to the start of the main body to avoid errors
|
||||||
|
# - Adjusted default binary paths to make sure the script just works
|
||||||
|
# w/ Solaris, BSD and Linux hosts
|
||||||
|
#
|
||||||
|
# Version 3.3
|
||||||
|
# - Added common name from X.509 certificate file to E-mail body / header -- Doug Curtis
|
||||||
|
# - Fixed several documentation errors
|
||||||
|
# - Use mktemp to create temporary files
|
||||||
|
# - Convert printf, sed and awk to variables
|
||||||
|
# - Check for printf, sed, awk and mktemp binaries
|
||||||
|
# - Add additional logic to make sure mktemp returned a valid temporary file
|
||||||
|
#
|
||||||
|
# Version 3.2
|
||||||
|
# - Added option to list certificates in the file passed to "-f".
|
||||||
|
#
|
||||||
|
# Version 3.1
|
||||||
|
# - Added handling for starttls for smtp -- Marco Amrein
|
||||||
|
# - Added handling for starttls for pop3 (without s) -- Marco Amrein
|
||||||
|
# - Removed extra spacing at end of script
|
||||||
|
#
|
||||||
|
# Version 3.0
|
||||||
|
# - Added "-i" option to print certificate issuer
|
||||||
|
# - Removed $0 from Subject line of outbound e-mails
|
||||||
|
# - Fixed some typographical errors
|
||||||
|
# - Removed redundant "-b" option
|
||||||
|
#
|
||||||
|
# Version 2.0
|
||||||
|
# - Fixed an issue with e-mails formatting incorrectly
|
||||||
|
# - Added additional space to host column -- Darren-Perot Spruell
|
||||||
|
# - Replaced GNU date dependency with CHRIS F. A. JOHNSON's
|
||||||
|
# date2julian shell function. This routine can be found on
|
||||||
|
# page 170 of Chris's book "Shell Scripting Recipes: A
|
||||||
|
# Problem-Solution Approach," ISBN #1590594711. Julian function
|
||||||
|
# was created based on a post to comp.unix.shell by Tapani Tarvainen.
|
||||||
|
# - Cleaned up function descriptions
|
||||||
|
# - Removed several lines of redundant code
|
||||||
|
# - Adjusted the help message
|
||||||
|
#
|
||||||
|
# Version 1.1
|
||||||
|
# - Added "-c" flag to report expiration status of a PEM encoded
|
||||||
|
# certificate -- Hampus Lundqvist
|
||||||
|
# - Updated the prints messages to display the reason a connection
|
||||||
|
# failed (connection refused, connection timeout, bad cert, etc)
|
||||||
|
# - Updated the GNU date checking routines
|
||||||
|
# - Added checks for each binary required
|
||||||
|
# - Added checks for connection timeouts
|
||||||
|
# - Added checks for GNU date
|
||||||
|
# - Added a "-h" option
|
||||||
|
# - Cleaned up the documentation
|
||||||
|
#
|
||||||
|
# Version 1.0
|
||||||
|
# Initial Release
|
||||||
|
#
|
||||||
|
# Last Updated: 12-12-2016
|
||||||
|
#
|
||||||
|
# Purpose:
|
||||||
|
# ssl-cert-check checks to see if a digital certificate in X.509 format
|
||||||
|
# has expired. ssl-cert-check can be run in interactive and batch mode,
|
||||||
|
# and provides facilities to alarm if a certificate is about to expire.
|
||||||
|
#
|
||||||
|
# License:
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# Requirements:
|
||||||
|
# Requires openssl
|
||||||
|
#
|
||||||
|
# Installation:
|
||||||
|
# Copy the shell script to a suitable location
|
||||||
|
#
|
||||||
|
# Tested platforms:
|
||||||
|
# -- Solaris 9 using /bin/bash
|
||||||
|
# -- Solaris 10 using /bin/bash
|
||||||
|
# -- OS X 10.4.2 using /bin/bash
|
||||||
|
# -- OpenBSD using /bin/sh
|
||||||
|
# -- FreeBSD using /bin/sh
|
||||||
|
# -- Centos Linux 3, 4, 5 & 6 using /bin/bash
|
||||||
|
# -- Redhat Enterprise Linux 3, 4, 5 & 6 using /bin/bash
|
||||||
|
# -- Gentoo using /bin/bash
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# Refer to the usage() sub-routine, or invoke ssl-cert-check
|
||||||
|
# with the "-h" option.
|
||||||
|
#
|
||||||
|
# Examples:
|
||||||
|
# Please refer to the following site for documentation and examples:
|
||||||
|
# http://prefetch.net/articles/checkcertificate.html
|
||||||
|
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sfw/bin
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/ssl/bin:/usr/sfw/bin
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
# Who to page when an expired certificate is detected (cmdline: -e)
|
# Who to page when an expired certificate is detected (cmdline: -e)
|
||||||
ADMIN="david@sc"
|
ADMIN="root"
|
||||||
|
|
||||||
# Email sender address for alarm notifications
|
# Email sender address for alarm notifications
|
||||||
SENDER="iDS-CertChecker@scity.us"
|
SENDER="postmaster@localhost.localdomain"
|
||||||
|
|
||||||
# Number of days in the warning threshhold (cmdline: -x)
|
# Number of days in the warning threshhold (cmdline: -x)
|
||||||
WARNDAYS=30
|
WARNDAYS=30
|
||||||
@@ -363,7 +573,7 @@ usage()
|
|||||||
{
|
{
|
||||||
echo "Usage: $0 [ -e email address ] [-E sender email address] [ -x days ] [-q] [-a] [-b] [-h] [-i] [-n] [-N] [-v]"
|
echo "Usage: $0 [ -e email address ] [-E sender email address] [ -x days ] [-q] [-a] [-b] [-h] [-i] [-n] [-N] [-v]"
|
||||||
echo " { [ -s common_name ] && [ -p port] } || { [ -f cert_file ] } || { [ -c cert file ] } || { [ -d cert dir ] }"
|
echo " { [ -s common_name ] && [ -p port] } || { [ -f cert_file ] } || { [ -c cert file ] } || { [ -d cert dir ] }"
|
||||||
echo ""
|
echo
|
||||||
echo " -a : Send a warning message through E-mail"
|
echo " -a : Send a warning message through E-mail"
|
||||||
echo " -b : Will not print header"
|
echo " -b : Will not print header"
|
||||||
echo " -c cert file : Print the expiration date for the PEM or PKCS12 formatted certificate in cert file"
|
echo " -c cert file : Print the expiration date for the PEM or PKCS12 formatted certificate in cert file"
|
||||||
@@ -383,7 +593,7 @@ usage()
|
|||||||
echo " -v : Specify a specific protocol version to use (tls, ssl2, ssl3)"
|
echo " -v : Specify a specific protocol version to use (tls, ssl2, ssl3)"
|
||||||
echo " -V : Only print validation data"
|
echo " -V : Only print validation data"
|
||||||
echo " -x days : Certificate expiration interval (eg. if cert_date < days)"
|
echo " -x days : Certificate expiration interval (eg. if cert_date < days)"
|
||||||
echo ""
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -429,7 +639,7 @@ check_server_status() {
|
|||||||
TLSFLAG="${TLSFLAG} -servername $1"
|
TLSFLAG="${TLSFLAG} -servername $1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "" | ${OPENSSL} s_client -crlf ${VER} -connect ${1}:${2} ${TLSFLAG} 2> ${ERROR_TMP} 1> ${CERT_TMP}
|
echo | ${OPENSSL} s_client -crlf ${VER} -connect ${1}:${2} ${TLSFLAG} 2> ${ERROR_TMP} 1> ${CERT_TMP}
|
||||||
|
|
||||||
if ${GREP} -i "Connection refused" ${ERROR_TMP} > /dev/null
|
if ${GREP} -i "Connection refused" ${ERROR_TMP} > /dev/null
|
||||||
then
|
then
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
cloud.schroedercity.com 443
|
|
||||||
git.schroedercity.com 443
|
|
||||||
www.schroedercity.com 443
|
|
||||||
32
templates/nginx.proxy.site
Normal file
32
templates/nginx.proxy.site
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
server {
|
||||||
|
set $forward_scheme <<PROXY_SCHEME>>;
|
||||||
|
set $server "<<PROXY_IP>>";
|
||||||
|
set $port <<PROXY_PORT>>;
|
||||||
|
|
||||||
|
server_name <<SERVER_NAME>>;
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
#listen 443 ssl;
|
||||||
|
|
||||||
|
|
||||||
|
#include conf.d/include/secure-access.conf;
|
||||||
|
|
||||||
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||||
|
include conf.d/include/ssl-ciphers.conf;
|
||||||
|
#ssl_certificate <<NM_CERTPATH>>/live/<<MAIN_SITE>>/fullchain.pem;
|
||||||
|
#ssl_certificate_key <<NM_CERTPATH>>/live/<<MAIN_SITE>>/privkey.pem;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/<<MAIN_SITE>>.proxy.log proxy;
|
||||||
|
error_log /var/log/nginx/<<MAIN_SITE>>.error.log warn;
|
||||||
|
|
||||||
|
#include conf.d/include/block-exploits.conf;
|
||||||
|
#include conf.d/include/websocket-support.conf;
|
||||||
|
#include conf.d/include/hsts-support.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
#include conf.d/include/websocket-support.conf;
|
||||||
|
#include conf.d/include/hsts-support.conf;
|
||||||
|
include conf.d/include/force-ssl.conf;
|
||||||
|
include conf.d/include/proxy.conf;
|
||||||
|
}
|
||||||
|
}
|
||||||
24
templates/nginx.site
Executable file
24
templates/nginx.site
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
server_name <<HOSTNAME>>;
|
||||||
|
set $base <<HOSTNAME>>;
|
||||||
|
root $base/public_html;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/<<HOSTNAME>>-access.log;
|
||||||
|
error_log /var/log/nginx/<<HOSTNAME>>-error.log warn;
|
||||||
|
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
include conf.d/include/php_fastcgi.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
include conf.d/include/general.conf;
|
||||||
|
}
|
||||||
32
templates/nginx.ssl.site
Executable file
32
templates/nginx.ssl.site
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl;
|
||||||
|
http2 on;
|
||||||
|
|
||||||
|
server_name <<HOSTNAME>>;
|
||||||
|
set $base <<HOSTNAME>>;
|
||||||
|
root $base/public_html;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/<<HOSTNAME>>-access.log;
|
||||||
|
error_log /var/log/nginx/<<HOSTNAME>>-error.log warn;
|
||||||
|
|
||||||
|
ssl_certificate <<NM_CERTPATH>>/live/<<HOSTNAME>>/fullchain.pem;
|
||||||
|
ssl_certificate_key <<NM_CERTPATH>>/live/<<HOSTNAME>>/privkey.pem;
|
||||||
|
include conf.d/include/ssl-ciphers.conf;
|
||||||
|
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
include conf.d/include/force-ssl.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
include conf.d/include/php_fastcgi.conf;
|
||||||
|
}
|
||||||
|
|
||||||
|
include conf.d/include/general.conf;
|
||||||
|
include conf.d/include/letsencrypt-acme-challenge.conf;
|
||||||
|
}
|
||||||
26
tmp-logrotate
Normal file
26
tmp-logrotate
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
su root syslog
|
||||||
|
|
||||||
|
/var/log/btmp {
|
||||||
|
missingok
|
||||||
|
daily
|
||||||
|
create 0660 root utmp
|
||||||
|
rotate 1
|
||||||
|
maxsize 100k
|
||||||
|
}
|
||||||
|
|
||||||
|
/var/log/wtmp {
|
||||||
|
size 1M
|
||||||
|
create 0664 root utmp
|
||||||
|
rotate 3
|
||||||
|
compress
|
||||||
|
daily
|
||||||
|
}
|
||||||
|
|
||||||
|
/opt/idssys/nodemgmt/logs/logfile {
|
||||||
|
size 1M
|
||||||
|
create 0664 root root
|
||||||
|
rotate 3
|
||||||
|
monthly
|
||||||
|
notifempty
|
||||||
|
minsize 200000
|
||||||
|
}
|
||||||
29
uninstall.sh
Executable file
29
uninstall.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Wrapper script for install, for easier execution via URL.
|
||||||
|
|
||||||
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
|
||||||
|
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"
|
||||||
|
else APTFUNC="${ATYPE}"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightGreen]}NodeMgmt Removal Script${idsCL[Default]}"
|
||||||
|
|
||||||
|
|
||||||
|
do_with_root set -eu
|
||||||
|
rm -f /usr/local/bin/nodemgmt
|
||||||
|
rm -f /usr/local/bin/nmg
|
||||||
|
rm -Rf /opt/idssys/nodemgmt
|
||||||
|
|
||||||
|
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
|
||||||
|
if [ "$IDSSYSF" = 2 ]; then
|
||||||
|
rm -Rf /opt/idssys/defaults
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -e "${idsCL[LightRed]}NodeMgmt has been Removed${idsCL[Default]}"
|
||||||
|
echo
|
||||||
|
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user