Files
hl-ldap-env/install.sh
ytshih 48ba8493d7
Some checks failed
Build package / build-package (push) Failing after 4s
Fix: remove unused install rule
2025-07-28 10:38:34 +08:00

19 lines
430 B
Bash

#!/usr/bin/env -S bash
pkglib="/usr/lib/hl-ldap-env"
install_override() {
src="$1"
dest="$2"
if [[ -e "$dest" ]]; then
mv "$dest" "$dest.pacsave"
fi
install -D "$src" "$dest"
}
install_override "$pkglib/ldap.conf" '/etc/openldap/ldap.conf'
install_override "$pkglib/pam-su" '/etc/pam.d/su'
install_override "$pkglib/pam-su-l" '/etc/pam.d/su-l'
install_override "$pkglib/pam-system-auth" '/etc/pam.d/system-auth'