Update timedatectl

This commit is contained in:
Alexandre
2024-06-10 11:13:46 +02:00
committed by GitHub
parent f4f66eacff
commit 3c9dbfbf2d

View File

@@ -55,7 +55,7 @@ case "$1" in
utc_time="$(date -u)"
time_zone="$(show_timezone)"
# Check if NTP is used
if sudo systemctl status systemd-timesyncd | grep -q "active"; then
if sudo systemctl status systemd-timesyncd | grep -q " active"; then
ntp_status="yes"
ntp_service="active"
else