mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Add Chrony support (less invasive) 3548bd3573
This commit is contained in:
@ -46,6 +46,11 @@ if (&has_command("ntpdate")) {
|
||||
elsif (&has_command("sntp")) {
|
||||
$out = &backquote_logged("sntp -s $servs 2>&1");
|
||||
}
|
||||
elsif (&has_command("chronyc")) {
|
||||
$out = &backquote_logged("systemctl restart chronyd 2>&1");
|
||||
$out .= &backquote_logged("chronyc makestep 2>&1");
|
||||
sleep 5;
|
||||
}
|
||||
else {
|
||||
$out = "Missing ntpdate and sntp commands";
|
||||
$? = 1;
|
||||
|
Reference in New Issue
Block a user