From d0f79f2bff972a33ec10634a62780d8e442c1ed1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 15 Sep 2023 10:28:58 +0200 Subject: [PATCH] wip #6269 @0.5 --- crontab | 1 + update | 1 + updateall.bat | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 crontab diff --git a/crontab b/crontab new file mode 100644 index 0000000..a1bfe46 --- /dev/null +++ b/crontab @@ -0,0 +1 @@ +* * * * * root docker exec -it fluidbook-hosting-loadbalancer /usr/local/bin/sync >/dev/null 2>/dev/null \ No newline at end of file diff --git a/update b/update index 824fb4d..c38b6ec 100644 --- a/update +++ b/update @@ -10,6 +10,7 @@ git fetch --all git reset --hard origin/master git stash git pull origin master +ln -sf /docker/fluidbook-hosting-loadbalancer/crontab /etc/cron.d/fluidbook-hosting-loadbalancer chmod 755 ./update chmod 755 ./ssh chmod 600 ./ssh/id_rsa diff --git a/updateall.bat b/updateall.bat index e7cc65f..1969dc5 100644 --- a/updateall.bat +++ b/updateall.bat @@ -1,2 +1,3 @@ ssh root@matrix.cubedesigners.com "/docker/fluidbook-hosting-loadbalancer/update" -ssh root@dracula.cubedesigners.com "/docker/fluidbook-hosting-loadbalancer/update" \ No newline at end of file +ssh root@dracula.cubedesigners.com "/docker/fluidbook-hosting-loadbalancer/update" +ssh root@dobermann.cubedesigners.com "/docker/fluidbook-hosting-loadbalancer/update" \ No newline at end of file -- 2.39.5