From 9d73b83cbabaac30d211942058c52c1fd7f1d31c Mon Sep 17 00:00:00 2001 From: raphaesl <raphaesl@stud.ntnu.no> Date: Sat, 25 Mar 2023 17:30:53 +0100 Subject: [PATCH] Created automatic update of config files for bookface --- configuration/worker/cron | 3 +++ configuration/worker/haproxy.cfg | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configuration/worker/cron b/configuration/worker/cron index e932500..194cbeb 100644 --- a/configuration/worker/cron +++ b/configuration/worker/cron @@ -2,3 +2,6 @@ * * * * * crontab < /home/ubuntu/dcsg2003/configuration/worker/cron @reboot bash /home/ubuntu/dcsg2003/configuration/worker/boot.sh */10 * * * * root ntpdate -b ntp.justervesenet.no + +* * * * * cp /home/ubuntu/dcsg2003/configuration/worker/haproxy.cfg /home/ubuntu/bookface/haproxy.cfg +* * * * * cp /home/ubuntu/dcsg2003/configuration/worker/docker-compose.yml /home/ubuntu/bookface/docker-compose.yml \ No newline at end of file diff --git a/configuration/worker/haproxy.cfg b/configuration/worker/haproxy.cfg index 86707b9..6e1f872 100644 --- a/configuration/worker/haproxy.cfg +++ b/configuration/worker/haproxy.cfg @@ -40,4 +40,4 @@ backend databases balance roundrobin server server1 192.168.134.127:26257 server server2 192.168.134.194:26257 - server server3 192.168.130.56:26257 \ No newline at end of file + server server3 192.168.130.56:26257 -- GitLab