From: Tom Hughes Date: Wed, 7 Sep 2016 22:09:50 +0000 (+0100) Subject: Don't update statistics if generation fails X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a73a91f6e5b506d8db04fb1c1e82840512a7dcde?ds=sidebyside Don't update statistics if generation fails --- 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