From 29d9bec6beb9f4367bb0553fd594e8dad89e6a76 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 20:24:54 -0300 Subject: [PATCH] update postinst --- DEBIAN/postinst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 6641148..9697194 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -5,11 +5,13 @@ set -e . /usr/share/debconf/confmodule db_get alice-auth/ldap-bind-password -CONFIG=/etc/sssd/sssd.conf +# CONFIG=/etc/sssd/sssd.conf -if [ ! -f "$CONFIG" ]; then - echo "Error: Configuration file $CONFIG does not exist." - exit 9 -fi +echo $RET -sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG +# if [ ! -f "$CONFIG" ]; then +# echo "Error: Configuration file $CONFIG does not exist." +# exit 9 +# fi +# +# sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG