Files
webmin/foobar/install_check.pl
Jamie Cameron 9dbd5db2c9 Fix permissions
2009-07-20 23:42:32 -07:00

24 lines
432 B
Perl
Executable File

do 'foobar-lib.pl';
=head2 is_installed(mode)
For mode 1, returns 2 if Foobar 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
=cut
sub is_installed
{
my ($mode) = @_;
# This is the code that you'd want if the Foobar webserver really existed
#if (-r $config{'foobar_conf'}) {
# return $mode + 1;
# }
#return 0;
return $mode + 1;
}