From 5e61e40da4453df5fe4e8e767f1b6a89621fe93a Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 12 Feb 2018 23:45:43 +0100 Subject: [PATCH] TT#32956 Do not ignore errors from maintscripts Change-Id: Id3f3c2c49d18d1a8dbe2ded9f7b7cde5c53e0fc6 --- debian/ngcp-system-tests.postinst | 2 ++ debian/ngcp-system-tests.postrm | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/ngcp-system-tests.postinst b/debian/ngcp-system-tests.postinst index 7d67e76..3f80665 100644 --- a/debian/ngcp-system-tests.postinst +++ b/debian/ngcp-system-tests.postinst @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # Remove obsolete files generated from templates. rm -rf /etc/ngcp-tests/ce rm -rf /etc/ngcp-tests/pro diff --git a/debian/ngcp-system-tests.postrm b/debian/ngcp-system-tests.postrm index f5b910c..f0fd51f 100644 --- a/debian/ngcp-system-tests.postrm +++ b/debian/ngcp-system-tests.postrm @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh # This script can be called in the following ways: # # After the package was removed: @@ -26,6 +26,8 @@ # If preinst fails during upgrade: # abort-upgrade +set -e + case "$1" in purge) rm -rf /etc/ngcp-tests/