From 1ef4bcc6023d655151bc794041fd097dd7df6585 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 20:22:37 -0300 Subject: [PATCH] update postinst --- DEBIAN/postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index b16fc83..a629b51 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -7,4 +7,9 @@ set -e db_get alice-auth/ldap-bind-password CONFIG=/etc/sssd/sssd.conf +if [ ! -f "$CONFIG" ]; then + echo "Error: Configuration file $CONFIG does not exist." + exit 10 +fi + sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG