Commit 8394c296 authored by Helmo's avatar Helmo

Correct condition to use the new variable, #4901

parent 74b3b31f
......@@ -490,7 +490,7 @@ class shelluser_jailkit_plugin {
// add root's key
$app->file->mkdirs($sshdir, '0755');
$authorized_keys_template = $this->jailkit_config['jailkit_chroot_authorized_keys_template'];
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));
// Remove duplicate keys
$existing_keys = @file($sshkeys, FILE_IGNORE_NEW_LINES);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment