synchro: Start the synchronization by performing time sync

This commit is contained in:
nemunaire 2022-06-02 10:47:09 +02:00
parent 68fb332ed1
commit f61b0a8e47
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ cd "${BASEDIR}"
touch /tmp/stop
# Establish first ssh connection for controlpersist socket, to avoid delay during time synchronization
${SSH_OPTS} ls > /dev/null
# Synchronize the date one time
${SSH_OPTS} date -s @"$(date +%s)"
# Synchronize static files in a separate loop (to avoid submissions delays during file synchronization)
while ! [ -f SETTINGS/stop ] || [ /tmp/stop -nt SETTINGS/stop ]
do