From 0cb23c91706f6e33ac66e5a80c1c5cb5046c1ca1 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 17 Nov 2013 20:57:03 +0000 Subject: Fix string comparison in chrony support My bad, not David's --- 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 de60872f6..fdda6e96d 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -120,7 +120,7 @@ $my_win->{window}->add(gtknew('VBox', border_width => $::isEmbedded ? 0 : 5, chi #verify that we have a valid hostname (thx sam) $choosed_serv =~ s/[^-a-zA-Z0-9.]//g; my $sync_ok; - if ($ntpd == "chronyd") { + if ($ntpd eq "chronyd") { system('systemctl', 'start', "$ntpd.service"); # Wait up to 30s for sync $sync_ok = !system('chronyc', 'waitsync', '30', '0.1'); -- cgit v1.2.1