Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -371,6 +371,7 @@ class Maint_Migrate extends Command
|
|||||||
|
|
||||||
// Start MySQL
|
// Start MySQL
|
||||||
$this->shell_exec_privileged('mkdir -p /var/run/mysqld');
|
$this->shell_exec_privileged('mkdir -p /var/run/mysqld');
|
||||||
|
$this->shell_exec_privileged('chown -R mysql:mysql /var/run/mysqld');
|
||||||
$this->shell_exec_privileged('supervisorctl start mysql 2>&1');
|
$this->shell_exec_privileged('supervisorctl start mysql 2>&1');
|
||||||
|
|
||||||
// Wait for MySQL to be ready
|
// Wait for MySQL to be ready
|
||||||
@@ -482,7 +483,7 @@ class Maint_Migrate extends Command
|
|||||||
$attempt = 0;
|
$attempt = 0;
|
||||||
|
|
||||||
while ($attempt < $max_attempts) {
|
while ($attempt < $max_attempts) {
|
||||||
$result = shell_exec("echo \"SELECT 'test';\" | mysql -urspade -prspadepass 2>/dev/null | grep test");
|
$result = shell_exec("echo \"SELECT 'test';\" | mysql -urspade -prspadepass -h 127.0.0.1 2>/dev/null | grep test");
|
||||||
|
|
||||||
if ($result !== null && str_contains($result, 'test')) {
|
if ($result !== null && str_contains($result, 'test')) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user