]> _ Git - fluidbook-hosting-loadbalancer.git/commitdiff
wip #6269 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 08:28:58 +0000 (10:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 08:28:58 +0000 (10:28 +0200)
crontab [new file with mode: 0644]
update
updateall.bat

diff --git a/crontab b/crontab
new file mode 100644 (file)
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 824fb4d637f728df62b16c49c9bee96b49bdaf01..c38b6ec2f0a0587fdcd805bbe54e9529bc6dbb46 100644 (file)
--- 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
index e7cc65fced367ea9d60cf02ae3c6fab736585a08..1969dc56d5ff9b884039dceec76649c7ba9448d1 100644 (file)
@@ -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