mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Don't flush if no change
This commit is contained in:
@ -89,7 +89,7 @@ else {
|
||||
$in{"pgsql.max_links"});
|
||||
}
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("db", undef, $in{'file'});
|
||||
|
@ -27,7 +27,7 @@ $in{'ext_def'} || $in{'ext'} =~ /\S/ || &error($text{'dirs_eext'});
|
||||
$in{'utmp_def'} || -d $in{'utmp'} || &error($text{'dirs_eutmp'});
|
||||
&save_directive($conf, "upload_tmp_dir", $in{'utmp_def'} ? undef : $in{'utmp'});
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("dirs", undef, $in{'file'});
|
||||
|
@ -51,7 +51,7 @@ elsif ($in{"error_log_def"} == 2) {
|
||||
&save_directive($conf, "error_log", $in{"error_log"});
|
||||
}
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("errors", undef, $in{'file'});
|
||||
|
@ -41,7 +41,7 @@ $in{"max_input_time_def"} || $in{"max_input_time"} =~ /^\-?\d+$/ ||
|
||||
&save_directive($conf, "max_input_time",
|
||||
$in{"max_input_time_def"} ? undef : $in{"max_input_time"});
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("limits", undef, $in{'file'});
|
||||
|
@ -61,7 +61,7 @@ else {
|
||||
&save_directive($conf, "default_charset",
|
||||
$in{'default_charset_def'} ? undef : $in{'default_charset'});
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("misc", undef, $in{'file'});
|
||||
|
@ -27,7 +27,7 @@ foreach $d ([ "safe_mode_include_dir", "safe_einclude" ],
|
||||
}
|
||||
}
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("safe", undef, $in{'file'});
|
||||
|
@ -54,7 +54,7 @@ else {
|
||||
$in{"session.gc_maxlifetime"});
|
||||
}
|
||||
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("session", undef, $in{'file'});
|
||||
|
@ -14,7 +14,7 @@ foreach $v ("magic_quotes_gpc", "magic_quotes_runtime",
|
||||
"register_argc_argv") {
|
||||
&save_directive($conf, $v, $in{$v} || undef);
|
||||
}
|
||||
&flush_file_lines_as_user($in{'file'});
|
||||
&flush_file_lines_as_user($in{'file'}, undef, 1);
|
||||
&unlock_file($in{'file'});
|
||||
&graceful_apache_restart($in{'file'});
|
||||
&webmin_log("vars", undef, $in{'file'});
|
||||
|
Reference in New Issue
Block a user