Handle hostnames with upper-case letters
[webmin.git] / hpuxexports / restart_mountd.cgi
1 #!/usr/local/bin/perl
2 # restart_mountd.cgi
3 # Do whatever is needed to apply changes to the exports file
4
5 require './exports-lib.pl';
6 $whatfailed = "Failed to apply changes";
7 &system_logged("$config{'portmap_command'} >/dev/null 2>&1 </dev/null")
8         if ($config{'portmap_command'});
9 $temp = &transname();
10 $rv = &system_logged("($config{'restart_command'}) </dev/null >$temp 2>&1");
11 $out = `cat $temp`;
12 unlink($temp);
13 #if ($rv) { <-- This seems to be a bug
14 if ($out) {
15         # something went wrong.. display an error
16         &error($out);
17         }
18 &webmin_log('apply');
19 &redirect("");