mirror of
https://github.com/webmin/webmin.git
synced 2025-08-15 21:20:10 +00:00
Add support for cloning log rotate job
This commit is contained in:
@ -11,6 +11,8 @@ if ($in{'global'}) {
|
|||||||
}
|
}
|
||||||
elsif ($in{'new'}) {
|
elsif ($in{'new'}) {
|
||||||
&ui_print_header(undef, $text{'edit_title2'}, "", "create");
|
&ui_print_header(undef, $text{'edit_title2'}, "", "create");
|
||||||
|
$log = $conf->[$in{'clone'}], $lconf = $log->{'members'}
|
||||||
|
if ($in{'clone'});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
&ui_print_header(undef, $text{'edit_title1'}, "", "edit");
|
&ui_print_header(undef, $text{'edit_title1'}, "", "edit");
|
||||||
@ -177,6 +179,13 @@ else {
|
|||||||
print &ui_form_end([ [ 'save', $text{'save'} ],
|
print &ui_form_end([ [ 'save', $text{'save'} ],
|
||||||
[ 'now', $text{'edit_now'} ],
|
[ 'now', $text{'edit_now'} ],
|
||||||
[ 'delete', $text{'delete'} ] ], "100%");
|
[ 'delete', $text{'delete'} ] ], "100%");
|
||||||
|
|
||||||
|
print &ui_form_start("edit_log.cgi",
|
||||||
|
undef, undef, undef, 'ui_form ui_table_end_submit_right');
|
||||||
|
print &ui_hidden("clone", $in{'idx'});
|
||||||
|
print &ui_hidden("new", 1);
|
||||||
|
print &ui_submit($text{'edit_clone'});
|
||||||
|
print &ui_form_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
&ui_print_footer("", $text{'index_return'});
|
&ui_print_footer("", $text{'index_return'});
|
||||||
|
@ -64,6 +64,7 @@ edit_pre=Commands to run before rotation
|
|||||||
edit_default=Default ($1)
|
edit_default=Default ($1)
|
||||||
edit_sharedscripts=Only run scripts once for all files?
|
edit_sharedscripts=Only run scripts once for all files?
|
||||||
edit_now=Rotate Now
|
edit_now=Rotate Now
|
||||||
|
edit_clone=Clone
|
||||||
|
|
||||||
global_title=Global Options
|
global_title=Global Options
|
||||||
global_header=Default options for all log files
|
global_header=Default options for all log files
|
||||||
|
Reference in New Issue
Block a user