diff --git a/configuration/manager/cron b/configuration/manager/cron index fc237c67df8c611d64ba3a1a1b417c5c9ecb0f5f..15483ff0c7e8ad2d802c964599ee411a2f8674c9 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 03996b7515ba2da3fa13eb0a24be285b5c87c2f7..aa4e4e025350ae7a85da6b61ae81fd298cc85a28 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.