initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
12
root/etc/e-smith/db/configuration/migrate/20NTPServer
Normal file
12
root/etc/e-smith/db/configuration/migrate/20NTPServer
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
my $ntp = $DB->get('NTPServer');
|
||||
if (defined $ntp)
|
||||
{
|
||||
$DB->new_record('ntpd', {
|
||||
type => 'service',
|
||||
status => 'enabled',
|
||||
NTPServer => $ntp->value,
|
||||
});
|
||||
$ntp->delete;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user