From 1b2905fa45b78c2d8562e87f4da4ed7d2e2e58d9 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 20:01:55 -0300 Subject: [PATCH] update postinst --- DEBIAN/postinst | 5 +++-- DEBIAN/templates | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 992bea7..fdbab0c 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,10 +1,11 @@ #!/bin/bash + set -e . /usr/share/debconf/confmodule db_get alice-auth/ldap-bind-password -LDAP_BIND_PASSWORD="$RET" CONFIG=/etc/sssd/sssd.conf -sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $LDAP_BIND_PASSWORD/" $CONFIG +sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG +db_go || true diff --git a/DEBIAN/templates b/DEBIAN/templates index 631d606..12a69b3 100644 --- a/DEBIAN/templates +++ b/DEBIAN/templates @@ -1,6 +1,5 @@ Template: alice-auth/ldap-bind-password Type: password -Default: Description: Digite a senha do LDAP. Senha do user Alice.