Commit ada5eb2
authored
Update v-list-sys-services
Inspired by Jaap Marcus, I rewrote the check to discover DB System between MySQL and MariaDB. Now using "mysql -V" to determine existence of each DB variant, subordinate to service type "mysql". This check looks for the substring "MariaDB" to be contained within the version string (mysql -V) of the currently running database. Far more foolproof than relying on the existence of a file or folder.
I tested this code on two live HestiaCP installations, one running under MySQL 5.7 and another running under MariaDB 10.5 -- works correctly in both instances.
Hope this helps.1 parent d310e83 commit ada5eb2
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
244 | 242 | | |
245 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
| |||
0 commit comments