alice-auth/DEBIAN/postinst

16 lines
297 B
Plaintext
Raw Normal View History

2024-11-17 19:49:50 -03:00
#!/bin/bash
2024-11-17 20:01:55 -03:00
2024-11-17 19:49:50 -03:00
set -e
2024-09-09 15:32:13 -03:00
2024-11-17 19:49:50 -03:00
. /usr/share/debconf/confmodule
db_get alice-auth/ldap-bind-password
CONFIG=/etc/sssd/sssd.conf
2024-11-17 20:22:37 -03:00
if [ ! -f "$CONFIG" ]; then
echo "Error: Configuration file $CONFIG does not exist."
exit 10
fi
2024-11-17 20:01:55 -03:00
sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG