From 3e354d8dd09e4e284215ceb766bed031cb11a2a9 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 27 Jul 2015 04:09:59 +0200 Subject: Add templates and scripts for the popularity contest. --- templates/system/options/enable-popularity-contest/node.def | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/system/options/enable-popularity-contest/node.def (limited to 'templates/system') 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 -- cgit v1.2.3