--- /dev/null
+sort_mode=0
+logrotate_conf=/opt/csw/etc/logrotate.conf
+sample_conf=/opt/csw/etc/logrotate.conf.CSW
+logrotate=/opt/csw/bin/logrotate
&ui_print_footer("/", $text{'index'});
exit;
}
-if (!-r $config{'logrotate_conf'} && -r $config{'sample_conf'}) {
- # No .. but a sample does. Use it
- system("cp $config{'sample_conf'} $config{'logrotate_conf'}");
- }
if (!-r $config{'logrotate_conf'}) {
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1);
&ui_print_endpage(
close(VERSION);
}
+# Use sample config if it exists but real config doesn't yet
+if (!-r $config{'logrotate_conf'} && -r $config{'sample_conf'}) {
+ ©_source_dest($config{'sample_conf'}, $config{'logrotate_conf'});
+ }
+
sub get_config_parent
{
if (!$get_config_parent_cache) {