From: Serge Hallyn Date: Tue, 31 Jul 2012 14:01:28 +0000 (+0200) Subject: ubuntu template: set -e to return error on failures. X-Git-Tag: lxc-0.8.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d61e5b908fe892ac3f10045d45ba4a4d75f0853;p=thirdparty%2Flxc.git ubuntu template: set -e to return error on failures. Otherwise callers can get bad containers without knowing it. Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/922645 Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 3e84e74a0..0061798cd 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -24,6 +24,8 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +set -e + if [ -r /etc/default/lxc ]; then . /etc/default/lxc fi