From f61b0a8e47b7c20c82fb9008047a36cbd9e57c37 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 2 Jun 2022 10:47:09 +0200 Subject: [PATCH] synchro: Start the synchronization by performing time sync --- configs/synchro.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/synchro.sh b/configs/synchro.sh index af575efc..77ab9f98 100644 --- a/configs/synchro.sh +++ b/configs/synchro.sh @@ -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