From 99ebbb91d36743f7baaad845718ca09987e2efcd Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 26 Sep 2024 14:37:41 +0200 Subject: [PATCH] wip #7073 --- bin/sync | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5