diff --git a/app/Console/Commands/Environment/AppSettingsCommand.php b/app/Console/Commands/Environment/AppSettingsCommand.php index e0dba73f9..ddacad826 100644 --- a/app/Console/Commands/Environment/AppSettingsCommand.php +++ b/app/Console/Commands/Environment/AppSettingsCommand.php @@ -147,11 +147,15 @@ class AppSettingsCommand extends Command $this->output->comment(trans('command/messages.environment.app.redis_pass_help')); $this->variables['REDIS_PASSWORD'] = $this->option('redis-pass') ?? $this->output->askHidden( trans('command/messages.environment.app.redis_password'), function () { - return true; + return ''; } ); } + if (empty($this->variables['REDIS_PASSWORD'])) { + unset($this->variables['REDIS_PASSWORD']); + } + $this->variables['REDIS_PORT'] = $this->option('redis-port') ?? $this->ask( trans('command/messages.environment.app.redis_port'), $this->config->get('database.redis.default.port') );