diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-07-27 04:09:59 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-07-27 04:09:59 +0200 |
commit | 3e354d8dd09e4e284215ceb766bed031cb11a2a9 (patch) | |
tree | 31fb813c8df71e0cfa086e808b173fdfbbd79819 /templates/system | |
parent | 0818b024512b220f1c50a8d87e383fd3719326af (diff) | |
download | vyatta-cfg-system-3e354d8dd09e4e284215ceb766bed031cb11a2a9.tar.gz vyatta-cfg-system-3e354d8dd09e4e284215ceb766bed031cb11a2a9.zip |
Add templates and scripts for the popularity contest.
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/options/enable-popularity-contest/node.def | 9 |
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 |