We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b3b31 commit 8394c29Copy full SHA for 8394c29
server/plugins-available/shelluser_jailkit_plugin.inc.php
@@ -490,7 +490,7 @@ private function _setup_ssh_rsa() {
490
// add root's key
491
$app->file->mkdirs($sshdir, '0755');
492
$authorized_keys_template = $this->jailkit_config['jailkit_chroot_authorized_keys_template'];
493
- if(is_file('/root/.ssh/authorized_keys')) $app->system->file_put_contents($sshkeys, $app->system->file_get_contents($authorized_keys_template));
+ if(is_file($authorized_keys_template)) $app->system->file_put_contents($sshkeys, $app->system->file_get_contents($authorized_keys_template));
494
495
// Remove duplicate keys
496
$existing_keys = @file($sshkeys, FILE_IGNORE_NEW_LINES);
0 commit comments