remove hostname from /etc/hosts in auth1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
38f354c106
commit
bb82945b41
|
@ -23,6 +23,13 @@ add_fqdn_to_hosts() {
|
||||||
# set FQDN in /etc/hosts
|
# set FQDN in /etc/hosts
|
||||||
add_fqdn_to_hosts $(get_ip_addr $(hostname)) auth1
|
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
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt update
|
apt update
|
||||||
apt install -y psmisc
|
apt install -y psmisc
|
||||||
|
|
Loading…
Reference in New Issue