initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
10
root/etc/e-smith/db/configuration/migrate/05syslog2rsyslog
Normal file
10
root/etc/e-smith/db/configuration/migrate/05syslog2rsyslog
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
my $syslog = $DB->get("syslog") or return;
|
||||
|
||||
my $rsyslog = $DB->get("rsyslog") ||
|
||||
$DB->new_record("rsyslog", { type => "service" });
|
||||
|
||||
$rsyslog->merge_props($syslog->props);
|
||||
|
||||
$syslog->delete;
|
||||
}
|
Reference in New Issue
Block a user