summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/options/enable-popularity-contest/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/system/options/enable-popularity-contest/node.def b/templates/system/options/enable-popularity-contest/node.def
new file mode 100644
index 00000000..3f048352
--- /dev/null
+++ b/templates/system/options/enable-popularity-contest/node.def
@@ -0,0 +1,9 @@
+help: Send anonymous system statistic to VyOS maintainers
+
+create:
+ sudo sh -c 'echo "#!/bin/sh" > /etc/cron.weekly/01vyos-popcon'
+ sudo sh -c 'echo "/opt/vyatta/bin/vyos-popcon.pl 2>&1 >/var/log/popcon.log" >> /etc/cron.weekly/01vyos-popcon'
+ sudo sh -c 'chmod +x /etc/cron.weekly/01vyos-popcon'
+
+delete:
+ sudo rm -f /etc/cron.weekly/01vyos-popcon