From: Vincent Vanwaelscappel Date: Thu, 26 Sep 2024 12:37:41 +0000 (+0200) Subject: wip #7073 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=99ebbb91d36743f7baaad845718ca09987e2efcd;p=fluidbook-hosting-loadbalancer.git wip #7073 --- diff --git a/bin/sync b/bin/sync index ff29d01..c2e65fd 100644 --- a/bin/sync +++ b/bin/sync @@ -1,2 +1,5 @@ -#!/bin/sh -/usr/bin/rsync -av --delete -e 'ssh -p 58745' toolbox@toolbox.fluidbook.com:/application/protected/fluidbookpublication/loadbalancer/ /var/www/html/ \ No newline at end of file +#!/bin/bash +if [ "$SYNC" == "1" ] +then + /usr/bin/rsync -av --delete -e 'ssh -p 58745' toolbox@toolbox.fluidbook.com:/application/protected/fluidbookpublication/loadbalancer/ /var/www/html/ +fi