Skip to content

Commit

Permalink
Renamed chrony file
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Oct 24, 2024
1 parent 535eafc commit a39f1ea
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 a39f1ea

Please sign in to comment.