Skip to content

Commit

Permalink
Make timesync optional but default is to wait for timesync
Browse files Browse the repository at this point in the history
  • Loading branch information
maseabunikie committed Dec 8, 2023
1 parent ba5aa87 commit b619829
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash -e

# Start chrony client and wait for timesync before doing anything.
/usr/bin/chronyc waitsync
if [ -z ${SKIP_TIMESYNC_WAIT} ] ||
[ "${SKIP_TIMESYNC_WAIT}" == "false" ] ||
[ ${SKIP_TIMESYNC_WAIT} == 0 ] ; then
# Start chrony client and wait for timesync before doing anything.
/usr/bin/chronyc waitsync
fi

if [ "$FASTRTPS_DEFAULT_PROFILES_FILE" != "" ]; then
cp $FASTRTPS_DEFAULT_PROFILES_FILE /default_profiles.xml
Expand Down

0 comments on commit b619829

Please sign in to comment.