smeserver-base/root/etc/e-smith/db/configuration/migrate/20NTPServer

13 lines
198 B
Plaintext

{
my $ntp = $DB->get('NTPServer');
if (defined $ntp)
{
$DB->new_record('ntpd', {
type => 'service',
status => 'enabled',
NTPServer => $ntp->value,
});
$ntp->delete;
}
}