Handle hostnames with upper-case letters
[webmin.git] / logrotate / install_check.pl
1
2 do 'logrotate-lib.pl';
3
4 # is_installed(mode)
5 # For mode 1, returns 2 if Logrotate is installed, or 0 otherwise.
6 # For mode 0, returns 1 if installed, 0 if not.
7 sub is_installed
8 {
9 return 0 if (!-r $config{'logrotate_conf'} && !-r $config{'sample_conf'});
10 return 0 if (!&has_command($config{'logrotate'}));
11 return $_[0] ? 2 : 1;
12 }
13