diff options
-rw-r--r-- | debian/libpam-runtime.config | 19 | ||||
-rw-r--r-- | debian/libpam-runtime.postinst | 16 |
2 files changed, 14 insertions, 21 deletions
diff --git a/debian/libpam-runtime.config b/debian/libpam-runtime.config deleted file mode 100644 index 48bd7513..00000000 --- a/debian/libpam-runtime.config +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -set -e -. /usr/share/debconf/confmodule - - -# pam-auth-update is introduced in 1.0.1-6 -# Between 1.0.1-6 and 1.0.1-10 it is possible to get empty profiles -if [ "x$2" != "x" ] ;then - if dpkg --compare-versions $2 lt 1.0.1-10 && dpkg --compare-versions $2 ge 1.0.1-6 ; then - db_get libpam-runtime/profiles - if [ "x$ret" = "x" ] ; then - db_input high libpam-runtime/you-had-no-auth ||true - db_go - fi - fi -fi - - -
\ No newline at end of file diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 4903ede8..76a3fc21 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -1,9 +1,21 @@ #!/bin/sh -e -# If the user has removed the config file, respect this sign of dementia -# -- only create on package install. . /usr/share/debconf/confmodule +# pam-auth-update is introduced in 1.0.1-6 +# Between 1.0.1-6 and 1.0.1-10 it is possible to get empty profiles +if [ "x$2" != "x" ] ;then + if dpkg --compare-versions $2 lt 1.0.1-10 && dpkg --compare-versions $2 ge 1.0.1-6 ; then + db_get libpam-runtime/profiles + if [ "x$ret" = "x" ] ; then + db_input critical libpam-runtime/you-had-no-auth ||true + db_go + fi + fi +fi + +# If the user has removed the config file, respect this sign of dementia +# -- only create on package install. force= if [ -z "$2" ] || dpkg --compare-versions "$2" lt 1.0.1-6 then |