Skip to content

Commit

Permalink
fix: update ntpd-rs
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed May 15, 2024
1 parent ccc75b3 commit c211ab2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/ntpd-rs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN /usr/local/bin/ntp-daemon --help
RUN /usr/local/bin/ntp-ctl --help
RUN /usr/local/bin/ntp-metrics-exporter --help

COPY ./apps/ntpd-rs/ntp.toml /etc/ntp.toml
COPY ./apps/ntpd-rs/ntp.toml /etc/ntpd-rs/ntp.toml
COPY ./apps/ntpd-rs/entrypoint.sh /entrypoint.sh

USER nobody:nogroup
Expand Down
5 changes: 3 additions & 2 deletions apps/ntpd-rs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

if [[ ! -f "/config/ntp.toml" ]]; then
printf "Copying over default configuration ...\n"
cp /etc/ntp.toml /config/ntp.toml
cp /etc/ntpd-rs/ntp.toml /config/ntp.toml
fi

#shellcheck disable=SC2086
exec \
/usr/local/bin/ntp-daemon \
--config /config/ntp.toml
--config /config/ntp.toml \
--log-level debug
3 changes: 3 additions & 0 deletions apps/ntpd-rs/ntp.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[[server]]
listen = "0.0.0.0:123"

[synchronization]
local-stratum = 8

0 comments on commit c211ab2

Please sign in to comment.