From 94b68d8fdfd6524cae3b8cd89cf13c9b0705512b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 21 Mar 2024 11:27:08 -0400 Subject: [PATCH] Try to make sure time and date is syncing with the internet. --- .includes/timezone.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.includes/timezone.sh b/.includes/timezone.sh index 89469f2..45aea7e 100755 --- a/.includes/timezone.sh +++ b/.includes/timezone.sh @@ -21,11 +21,10 @@ mapfile -t cities < <(timedatectl --no-pager list-timezones | grep "$region" | c $(for i in ${cities[@]} ; do echo "$i";echo "$i";done) --stdout) # Set the timezone -sudo "${sudoFlags[@]}" timedatectl set-timezone ${region}/${city} if [[ -f /etc/localtime ]]; then sudo "${sudoFlags[@]}" rm /etc/localtime fi sudo "${sudoFlags[@]}" ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime # Make sure we are syncing with the internet -sudo "${sudoFlags[@]}" timedatectl set-ntp true +yay -Sy --needed --noconfirm networkmanager-dispatcher-openntpd