mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Prevent ansi colors in key:generate output (#15773)
* Prevent ansi colors in key:generate output * Apply fixes from StyleCI
This commit is contained in:
@@ -122,10 +122,11 @@ class EnvHelper
|
||||
|
||||
$key = null;
|
||||
if (php_sapi_name() == 'cli') {
|
||||
$key = trim(exec(PHP_BINARY . ' ' . base_path('artisan') . ' key:generate --show'));
|
||||
$key = trim(exec(PHP_BINARY . ' ' . base_path('artisan') . ' key:generate --show --no-ansi'));
|
||||
} else {
|
||||
if (Artisan::call('key:generate', [
|
||||
'--show' => 'true',
|
||||
'--no-ansi' => 'true',
|
||||
]) == 0) {
|
||||
$key = trim(Artisan::output());
|
||||
}
|
||||
|
Reference in New Issue
Block a user