From b55f0cfdd559124304d4750849d3582674d6215d Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 20:13:35 -0300 Subject: [PATCH] add config file --- DEBIAN/config | 9 +++++++++ DEBIAN/postinst | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 DEBIAN/config diff --git a/DEBIAN/config b/DEBIAN/config new file mode 100644 index 0000000..a5a7bf9 --- /dev/null +++ b/DEBIAN/config @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +. /usr/share/debconf/confmodule + +db_input high alice-auth/ldap-bind-password || true +db_go + +exit 0 diff --git a/DEBIAN/postinst b/DEBIAN/postinst index fdbab0c..b16fc83 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -8,4 +8,3 @@ db_get alice-auth/ldap-bind-password CONFIG=/etc/sssd/sssd.conf sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG -db_go || true