aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-02 03:20:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-02 03:20:45 +0000
commit31c47e544c04fc91de20f854bd622bac322c0df9 (patch)
treeaec5755d8496c8d5904509edb9eff5ed20928565 /packages
parentd18462f36b6330cf0c48aa09487e1c765f126152 (diff)
downloadpfsense-packages-31c47e544c04fc91de20f854bd622bac322c0df9.tar.gz
pfsense-packages-31c47e544c04fc91de20f854bd622bac322c0df9.tar.bz2
pfsense-packages-31c47e544c04fc91de20f854bd622bac322c0df9.zip
Fetch file automagically from bsdstats.org
Diffstat (limited to 'packages')
-rw-r--r--packages/bsdstats/bsdstats.xml8
1 files changed, 8 insertions, 0 deletions
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 @@
<section>Diagnostics</section>
</menu>
<custom_php_install_command>
+ 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");