From a73a91f6e5b506d8db04fb1c1e82840512a7dcde Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 7 Sep 2016 23:09:50 +0100 Subject: [PATCH] Don't update statistics if generation fails --- cookbooks/web/templates/default/statistics.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/web/templates/default/statistics.erb b/cookbooks/web/templates/default/statistics.erb index ccfe956cc..4fc94857e 100644 --- a/cookbooks/web/templates/default/statistics.erb +++ b/cookbooks/web/templates/default/statistics.erb @@ -1,5 +1,8 @@ #!/bin/sh +# Abort on error +set -e + # Make sure /usr/local/bin is on the path export PATH=$PATH:/usr/local/bin -- 2.39.5