Skip to content

Commit

Permalink
Make install check validate existence of the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Apr 2, 2017
1 parent 331cb2f commit 12a3d27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# For mode 0, returns 1 if installed, 0 if not
sub is_installed
{
my ($mode) = @_;
# Available config file in the default location?
#return 0 if (!-x $config{'jailkit_init_ini'});
return 1;
return 0 if (!-r $config{'jailkit_init_ini'});
return $mode ? 2 : 0;
}

0 comments on commit 12a3d27

Please sign in to comment.