From 67c98996bcfad7882db981788eaeeae834826949 Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Mon, 9 Sep 2024 17:56:38 +0200 Subject: d/libpam-{modules,runtime}.post{inst,rm}: Use `set -e` instead of `/bin/sh -e` Policy recommends to use `set -e` to ensure that scripts always have `-e` enabled, even when they are run as `sh foo.postinst`. Fixes: lintian: *: maintainer-script-without-set-e --- debian/libpam-modules.postinst | 4 +++- debian/libpam-runtime.postinst | 4 +++- debian/libpam-runtime.postrm | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/debian/libpam-modules.postinst b/debian/libpam-modules.postinst index ed6afbe2..36cdf2cb 100644 --- a/debian/libpam-modules.postinst +++ b/debian/libpam-modules.postinst @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e # If the user has removed the config file, respect this sign of dementia # -- only create on package install. diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 667b33a6..230774d2 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e . /usr/share/debconf/confmodule diff --git a/debian/libpam-runtime.postrm b/debian/libpam-runtime.postrm index bff1f43f..04784c39 100644 --- a/debian/libpam-runtime.postrm +++ b/debian/libpam-runtime.postrm @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e if [ "$1" = "purge" ]; then rm -f /etc/pam.d/common-auth /etc/pam.d/common-account \ -- cgit v1.2.3