Skip to content

Commit

Permalink
Fix to check of jk_init exists
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jun 2, 2022
1 parent b45b58f commit 06fd269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Virtualmin/Config/Plugin/Virtualmin.pm
Expand Up @@ -239,8 +239,8 @@ sub actions {
}

# Fix to extend Jailkit [basicshell] paths
if (&foreign_check('jailkit')) {
&foreign_require('jailkit');
if (has_command('jk_init') && foreign_check('jailkit')) {
foreign_require('jailkit');
my $jk_init_conf = &jailkit::get_jk_init_ini();
my $jk_basicshell_paths = $jk_init_conf->val('basicshell', 'paths');
my @jk_basicshell_paths = split(/\s*,\s*/, $jk_basicshell_paths);
Expand Down

0 comments on commit 06fd269

Please sign in to comment.