Try to make sure time and date is syncing with the internet.
This commit is contained in:
parent
b22785ab3e
commit
51a0fd0883
@ -47,14 +47,13 @@ set_timezone() {
|
|||||||
$(for i in ${cities[@]} ; do echo "$i";echo "$i";done) --stdout)
|
$(for i in ${cities[@]} ; do echo "$i";echo "$i";done) --stdout)
|
||||||
|
|
||||||
# Set the timezone
|
# Set the timezone
|
||||||
timedatectl set-timezone ${region}/${city}
|
|
||||||
if [[ -f /etc/localtime ]]; then
|
if [[ -f /etc/localtime ]]; then
|
||||||
rm /etc/localtime
|
rm /etc/localtime
|
||||||
fi
|
fi
|
||||||
ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
|
ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
|
||||||
|
|
||||||
# Make sure we are syncing with the internet
|
# Make sure we are syncing with the internet
|
||||||
timedatectl set-ntp true
|
yay -Sy --needed --noconfirm networkmanager-dispatcher-openntpd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user