From 12a3d277c6cd59041b0f025d94b137a18aabf293 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 2 Apr 2017 10:08:44 -0700 Subject: [PATCH] Make install check validate existence of the config file --- install_check.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_check.pl b/install_check.pl index 0fc77f8..03b3aa1 100644 --- a/install_check.pl +++ b/install_check.pl @@ -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; }