-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
165 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-pbp # Start with Perl Best Practices | ||
-nst # Non-standard output (allow operate in-place) | ||
-w # Show all warnings | ||
-iob # Ignore old breakpoints | ||
-l=80 # 80 characters per line | ||
-mbl=2 # No more than 2 blank lines | ||
-i=2 # Indentation is 2 columns | ||
-ci=2 # Continuation indentation is 2 columns | ||
-vt=0 # Less vertical tightness | ||
-pt=2 # High parenthesis tightness | ||
-bt=2 # High brace tightness | ||
-sbt=2 # High square bracket tightness | ||
-isbc # Don't indent comments without leading space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# install_check.pl | ||
use strict; | ||
use warnings; | ||
|
||
our %config; | ||
do './jailkit-lib.pl'; | ||
|
||
# is_installed(mode) | ||
# For mode 1, returns 2 if the server is installed and configured for use by | ||
# Webmin, 1 if installed but not configured, or 0 otherwise. | ||
# For mode 0, returns 1 if installed, 0 if not | ||
sub is_installed | ||
{ | ||
my ($mode) = @_; | ||
sub is_installed { | ||
my ($mode) = @_; | ||
|
||
# Available config file in the default location? | ||
return 0 if (!-r $config{'jailkit_init_ini'}); | ||
return $mode ? 2 : 0; | ||
return 0 if (!-r $config{'jailkit_init_ini'}); | ||
return $mode ? 2 : 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.