mirror of
https://github.com/webmin/webmin.git
synced 2026-01-16 15:06:07 +00:00
17 lines
355 B
Perl
Executable File
17 lines
355 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# apply.cgi
|
|
# Apply config file changes with a HUP signal
|
|
|
|
require './proftpd-lib.pl';
|
|
&ReadParse();
|
|
&error_setup($text{'apply_err'});
|
|
if ($config{'test_config'}) {
|
|
$err = &test_config();
|
|
&error("<pre>$err</pre>") if ($err);
|
|
}
|
|
$err = &apply_configuration();
|
|
&error($err) if ($err);
|
|
&webmin_log("apply");
|
|
&redirect($in{'redir'});
|
|
|