remove hostname from /etc/hosts in auth1
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Max Erenberg 2021-08-21 07:13:36 +00:00
parent 38f354c106
commit bb82945b41
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ add_fqdn_to_hosts() {
# set FQDN in /etc/hosts
add_fqdn_to_hosts $(get_ip_addr $(hostname)) auth1
# I'm not sure why, but we also need to remove the hosts entry for the
# container's real hostname, otherwise slapd only looks for the principal
# ldap/<container hostname> (this is with the sasl-host option)
sed -E "/\\b$(hostname)\\b/d" /etc/hosts > /tmp/hosts
cat /tmp/hosts > /etc/hosts
rm /tmp/hosts
export DEBIAN_FRONTEND=noninteractive
apt update
apt install -y psmisc