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/