Try to make sure time and date is syncing with the internet.
This commit is contained in:
parent
157c5cc9e3
commit
94b68d8fdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user