From 31c47e544c04fc91de20f854bd622bac322c0df9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 2 Oct 2006 03:20:45 +0000 Subject: Fetch file automagically from bsdstats.org --- packages/bsdstats/bsdstats.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packages/bsdstats') diff --git a/packages/bsdstats/bsdstats.xml b/packages/bsdstats/bsdstats.xml index c9d587ca..1e739765 100644 --- a/packages/bsdstats/bsdstats.xml +++ b/packages/bsdstats/bsdstats.xml @@ -11,6 +11,14 @@
Diagnostics
+ system("/bin/mkdir -p /usr/local/etc/periodic/monthly/"); + system("/usr/bin/fetch -q -o /usr/local/etc/periodic/monthly/ http://www.bsdstats.org/downloads/300.statistics"); + system("/bin/chmod a+rx /usr/local/etc/periodic/monthly/300.statistics"); + if(!is_file("/usr/local/etc/periodic/monthly/300.statistics") { + update_status("Could not fetch 300.statistics from bsdstats.org"); + update_output_window("Install failed. Please check dns, etc"); + exit; + } system("echo monthly_statistics_report_devices=yes >> /etc/periodic.conf"); system("echo monthly_statistics_enable=yes >> /etc/periodic.conf"); system("/usr/local/etc/periodic/monthly/300.statistics"); -- cgit v1.2.3