mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-07 22:18:21 +08:00
fix(Service Codefever): read env path from config file
This commit is contained in:
@@ -109,9 +109,11 @@ function addAuthorizedKey(array $data)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
global $config;
|
||||
|
||||
$sshGateway = dirname(BASE_PATH) . '/ssh-gateway/shell/main';
|
||||
$authorized = [
|
||||
"command=\"PATH=\$PATH:/usr/local/git/bin && {$sshGateway} \$SSH_ORIGINAL_COMMAND {$data['user']}\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty",
|
||||
"command=\"PATH=\$PATH:" . dirname($config['cli']['git']) . " && {$sshGateway} \$SSH_ORIGINAL_COMMAND {$data['user']}\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty",
|
||||
$data['type'],
|
||||
$data['key'],
|
||||
$data['name'],
|
||||
|
||||
Reference in New Issue
Block a user