Small fix

This commit is contained in:
Boy132 2021-04-20 10:08:21 +02:00 committed by GitHub
parent 3ca835e661
commit 2f6351ec00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,10 +54,10 @@ class UpgradeCommand extends Command
if (is_null($this->option('user'))) {
$user_details = posix_getpwuid(fileowner('public'));
$user = $details['name'] ?? 'www-data';
$user = $user_details['name'] ?? 'www-data';
$group_details = posix_getgrgid(filegroup('public'));
$group = $details['name'] ?? 'www-data';
$group = $group_details['name'] ?? 'www-data';
if (!$this->confirm("Your webserver user (and group) has been detected as [{$user}:{$group}]: is this correct?", true)) {
$user = $this->anticipate(