Files
alice-auth/DEBIAN/postinst
T
Carneiro 0a03be9c66
Deploy Package / Explore-Gitea-Actions (push) Successful in 11s
add debconf template and fix sed
2024-11-17 19:49:50 -03:00

11 lines
232 B
Bash
Executable File

#!/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