Aktualisierung Zeitsynchronisation (NTP/NTPDATE)

This commit is contained in:
Gerd Zelo 2021-05-01 00:05:36 +02:00 committed by GitHub
parent 73221d2b56
commit 50b75dab59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@ fi
echo "*** Unbound installieren"
echo ""
apt-get update
apt-get install unbound dnsutils -y
apt-get install unbound dnsutils ntp ntpdate -y
echo ""
echo ""
@ -38,7 +38,9 @@ if [ "$respntp" != "${respntp#[Jj]}" ]; then
wget -O /etc/systemd/timesyncd.conf https://raw.githubusercontent.com/Zelo72/rpi/master/unbound/timesyncd.conf
timedatectl set-ntp true
timedatectl set-timezone 'Europe/Berlin'
hwclock -w
service ntp stop
ntpdate -q pool.ntp.org
service ntp start
fi
echo ""
echo ""