From 2bd349e099e93bf2598a31ae169166b86c7c87fc Mon Sep 17 00:00:00 2001 From: zezinho Date: Mon, 2 Apr 2018 10:28:47 +0200 Subject: As ntpdate is being deprecated, Adrien Guichard gave this patch to use ntpq in drakclock. MGA#22850 --- perl-install/standalone/drakclock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index ed0ce940e..e7234c728 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -129,7 +129,7 @@ $my_win->{window}->add( $sync_ok = !system('chronyc', 'waitsync', '30', '0.1'); system('systemctl', 'stop', "$ntpd.service") if !$sync_ok; } else { - $sync_ok = !system('/usr/sbin/ntpdate', $choosed_serv); + $sync_ok = !system('/usr/sbin/ntpd', '-gqc', '/dev/null', $choosed_serv); system('systemctl', 'start', "$ntpd.service") if $sync_ok; } if ($sync_ok) { -- cgit v1.2.1