mirror of
https://github.com/webmin/webmin.git
synced 2025-08-19 01:15:14 +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")) {
|
elsif (&has_command("sntp")) {
|
||||||
$out = &backquote_logged("sntp -s $servs 2>&1");
|
$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 {
|
else {
|
||||||
$out = "Missing ntpdate and sntp commands";
|
$out = "Missing ntpdate and sntp commands";
|
||||||
$? = 1;
|
$? = 1;
|
||||||
|
Reference in New Issue
Block a user