13 lines
198 B
Plaintext
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;
|
||
|
}
|
||
|
}
|