synchro: Start the synchronization by performing time sync
This commit is contained in:
parent
68fb332ed1
commit
f61b0a8e47
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue