diff --git a/occ b/occ index b3fed16e82aae..e19d025cc88a3 100755 --- a/occ +++ b/occ @@ -1,5 +1,6 @@ #!/usr/bin/env php ($ownerUid = fileowner($configPath)) ? posix_getpwuid($ownerUid)['name'] : $fallbackUser, + false => $fallbackUser, + }; + $command = implode (' ', $argv); + echo(shell_exec("sudo -u $guessedUser php -f " . $command)); + exit; +} else { + require_once __DIR__ . '/console.php'; +}