From af907c7517cdd4695c150a0abef1d6da6cf2f4f9 Mon Sep 17 00:00:00 2001
From: raphaesl <raphaesl@stud.ntnu.no>
Date: Sat, 25 Mar 2023 16:53:27 +0100
Subject: [PATCH] pushed scaling to live version

---
 configuration/manager/cron               | 1 +
 configuration/manager/frontpage_scale.sh | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configuration/manager/cron b/configuration/manager/cron
index fc237c6..15483ff 100644
--- a/configuration/manager/cron
+++ b/configuration/manager/cron
@@ -6,3 +6,4 @@
 0 8 * * * bash /home/ubuntu/dcsg2003/configuration/manager/backupDatabase.sh
 * * * * * cp /home/ubuntu/dcsg2003/configuration/manager/.bashrc /home/ubuntu/.bashrc
 * * * * * cp /home/ubuntu/dcsg2003/configuration/manager/.bashrc /root/.bashrc
+* * * * * bash /home/ubuntu/dcsg2003/configuration/manager/frontpage_scale.sh
\ No newline at end of file
diff --git a/configuration/manager/frontpage_scale.sh b/configuration/manager/frontpage_scale.sh
index 03996b7..aa4e4e0 100644
--- a/configuration/manager/frontpage_scale.sh
+++ b/configuration/manager/frontpage_scale.sh
@@ -24,7 +24,7 @@ DOWNLOAD_TIME_LOWER_THRESHOLD=1.9
 DOWNLOAD_TIME_UPPER_THRESHOLD=10.0
 
 # SAFETY VALVE: Set this to "0" if you want the scaling to actually take place
-SAFETY_VALVE=1
+SAFETY_VALVE=0
 
 ########################
 # SAFETY CHECK: Is bc installed?
@@ -61,6 +61,7 @@ function scale {
 
 }
 
+
 ################################
 # Check if the site is up. Exit if it's down.
 
-- 
GitLab