diff options
author | Marcin Owsiany <porridge> | 2012-10-31 22:36:23 +0000 |
---|---|---|
committer | Marcin Owsiany <porridge> | 2012-10-31 22:36:23 +0000 |
commit | fa25b05ff48dcb72b8dfa63e4eb59c8a4df98457 (patch) | |
tree | 6bfc417e0bee3d42b2eb76d7388a5d04c8792287 | |
parent | 07f7d1b14b619a9858b9901fd55b149e83ee0317 (diff) |
Add MAILTO variables to comment.
CVS version numbers
get-www-stats: 1.3 -> 1.4
-rwxr-xr-x | get-www-stats | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/get-www-stats b/get-www-stats index 5cf58989aa7..5ead7d5e62b 100755 --- a/get-www-stats +++ b/get-www-stats @@ -19,11 +19,13 @@ # This program is run from a crontab on a Debian website mirror like this: # +# MAILTO="porridge@debian.org" # # Atomically and concurrent-safely create a stats.tgz # 18 3 * * * cd "$HOME" && d=$(mktemp -d stats-wip-XXXXXXXXXX) && printf '{"hostname":"\%s"}' $(hostname -f) > "$d/stats.meta.json" && ./get-www-stats > "$d/stats.json" && tar zcf stats-wip.tgz "$d" && rm -rf "$d" && mv stats-wip.tgz stats.tgz # # And the output is transferred to dde.debian.net like this: # +# MAILTO="porridge@debian.org" # # Atomically transfer stats and replace them. # 18 4 * * * cd $HOME && { [ ! -e stats-old ] || please_cleanup_failed_run ; } && cp -al stats-new stats-old && ln -s stats-old stats-old.s && mv -T stats-old.s stats && { scp -q -i .ssh/stats-transfer-nopass senfl.debian.org:stats.tgz stats.tgz || scp_failed ; } && rm -rf stats-new && mkdir stats-new && tar zxf stats.tgz -C stats-new --strip-components=1 && rm stats.tgz && ln -s stats-new stats-new.s && mv -T stats-new.s stats && rm -rf stats-old # |