Handle hostnames with upper-case letters
[webmin.git] / webmin / postinstall.pl
1
2 require 'webmin-lib.pl';
3
4 sub module_install
5 {
6 # Update cache of which module's underlying servers are installed 
7 &build_installed_modules();
8
9 # Pick a random update time
10 if (!defined($config{'uphour'}) ||
11     $config{'uphour'} == 3 && $config{'upmins'} == 0 && !$config{'update'}) {
12         &seed_random();
13         $config{'uphour'} = int(rand()*24);
14         $config{'upmins'} = int(rand()*60);
15         &save_module_config();
16         }
17 }
18