|
@@ 94-98 (lines=5) @@
|
| 91 |
|
} |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
if (is_null($this->option('dbhost'))) { |
| 95 |
|
$variables['DB_HOST'] = $this->anticipate('Database Host', ['localhost', '127.0.0.1', config('database.connections.mysql.host')], config('database.connections.mysql.host')); |
| 96 |
|
} else { |
| 97 |
|
$variables['DB_HOST'] = $this->option('dbhost'); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if (is_null($this->option('dbport'))) { |
| 101 |
|
$variables['DB_PORT'] = $this->anticipate('Database Port', [3306, config('database.connections.mysql.port')], config('database.connections.mysql.port')); |
|
@@ 100-104 (lines=5) @@
|
| 97 |
|
$variables['DB_HOST'] = $this->option('dbhost'); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
if (is_null($this->option('dbport'))) { |
| 101 |
|
$variables['DB_PORT'] = $this->anticipate('Database Port', [3306, config('database.connections.mysql.port')], config('database.connections.mysql.port')); |
| 102 |
|
} else { |
| 103 |
|
$variables['DB_PORT'] = $this->option('dbport'); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
if (is_null($this->option('dbname'))) { |
| 107 |
|
$variables['DB_DATABASE'] = $this->anticipate('Database Name', ['pterodactyl', 'homestead', config('database.connections.mysql.database')], config('database.connections.mysql.database')); |
|
@@ 106-110 (lines=5) @@
|
| 103 |
|
$variables['DB_PORT'] = $this->option('dbport'); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
if (is_null($this->option('dbname'))) { |
| 107 |
|
$variables['DB_DATABASE'] = $this->anticipate('Database Name', ['pterodactyl', 'homestead', config('database.connections.mysql.database')], config('database.connections.mysql.database')); |
| 108 |
|
} else { |
| 109 |
|
$variables['DB_DATABASE'] = $this->option('dbname'); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if (is_null($this->option('dbuser'))) { |
| 113 |
|
$variables['DB_USERNAME'] = $this->anticipate('Database Username', [config('database.connections.mysql.username')], config('database.connections.mysql.username')); |