Handle hostnames with upper-case letters
[webmin.git] / system-status / enable-collection.pl
1 #!/usr/local/bin/perl
2 # Command-line script to enable status collection
3
4 $no_acl_check++;
5 require 'system-status-lib.pl';
6 $ARGV[0] eq 'none' || $ARGV[0] =~ /^[1-9][0-9]*$/ && $ARGV[0] <= 60 ||
7         die "usage: enable-collection.pl none|<mins>";
8
9 $config{'collect_interval'} = $ARGV[0];
10 &save_module_config();
11 &setup_collectinfo_job();