From 157c5cc9e314ac3dad17f34f5b6719650d98a528 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 12 Mar 2024 16:45:56 -0400 Subject: [PATCH] Updated timezone script since timedatectl set-ntp seems to be working now. --- .includes/timezone.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.includes/timezone.sh b/.includes/timezone.sh index 02da4f9..89469f2 100755 --- a/.includes/timezone.sh +++ b/.includes/timezone.sh @@ -25,11 +25,7 @@ sudo "${sudoFlags[@]}" timedatectl set-timezone ${region}/${city} if [[ -f /etc/localtime ]]; then sudo "${sudoFlags[@]}" rm /etc/localtime fi -sudo "${sudoFlags[@]}" ln -s /usr/share/zoneinfo/${region}/${city} /etc/localtime +sudo "${sudoFlags[@]}" ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime # Make sure we are syncing with the internet -echo "Setting up ntpd" -sudo "${sudoFlags[@]}" timedatectl set-ntp false -sudo "${sudoFlags[@]}" systemctl stop ntpd -sudo "${sudoFlags[@]}" ntpd -Ggq &> /dev/null -sudo "${sudoFlags[@]}" systemctl enable ntpd --now +sudo "${sudoFlags[@]}" timedatectl set-ntp true