Skip to content

Commit

Permalink
Merge pull request #90 from ElstonLewis/Improvements_Debian12
Browse files Browse the repository at this point in the history
Renamed chrony file
  • Loading branch information
ElstonLewis authored Oct 24, 2024
2 parents 535eafc + a39f1ea commit 95fde8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions files/chrony-specific/10-dhcp-chrony
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
if [ "$2" = "up" ]; then
if [ -n "$DHCP4_NTP_SERVERS" ]; then
chronyc delete sources
for server in $DHCP4_NTP_SERVERS; do
chronyc add server $server iburst
done
systemctl restart chronyd
fi
fi

0 comments on commit 95fde8c

Please sign in to comment.