aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mga-mirrors/templates')
-rw-r--r--modules/mga-mirrors/templates/cron-mga_mirrors2
-rw-r--r--modules/mga-mirrors/templates/mga-mirrors.ini4
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/mga-mirrors/templates/cron-mga_mirrors b/modules/mga-mirrors/templates/cron-mga_mirrors
new file mode 100644
index 00000000..7236be04
--- /dev/null
+++ b/modules/mga-mirrors/templates/cron-mga_mirrors
@@ -0,0 +1,2 @@
+MAILTO=root
+*/20 * * * * nobody /usr/local/bin/check_mirrors_status --output /var/www/mirrors/status.html.tmp && mv -f /var/www/mirrors/status.html.tmp /var/www/mirrors/status.html
diff --git a/modules/mga-mirrors/templates/mga-mirrors.ini b/modules/mga-mirrors/templates/mga-mirrors.ini
index 973c65fd..b438edd1 100644
--- a/modules/mga-mirrors/templates/mga-mirrors.ini
+++ b/modules/mga-mirrors/templates/mga-mirrors.ini
@@ -1,4 +1,4 @@
[db]
-pgconn=host=pgsql.<%= domain %>;dbname=mirrors
+pgconn=host=pg.<%= @domain %>;dbname=mirrors
user=mirrors
-password=<%= password %>
+password=<%= @pgsql_password %>