bundles/systemd: systemd-timesyncd not showing offset is an error

This commit is contained in:
Franzi 2022-12-17 11:41:37 +01:00
parent 8a0ae4fa10
commit 6d49889f2f
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -26,8 +26,8 @@ try:
).strip().decode()
if not out:
print('NTP service is active, but could not get offset. This is probably fine.')
exit(0)
print('NTP service is active, but could not get offset. Something is wrong.')
exit(1)
if out.startswith('+'):
out = out[1:]