diff --git a/root/usr/local/lib/wrapper_script.sh b/root/usr/local/lib/wrapper_script.sh index 1c7688c56c06c2ec8b872f406e26852bce80c245..a453e0a0a3bc1fe15d3758d8d46e16d4f83caad1 100755 --- a/root/usr/local/lib/wrapper_script.sh +++ b/root/usr/local/lib/wrapper_script.sh @@ -7,8 +7,9 @@ chown -R abc:abc /config if [ "$2" ]; then export CUSTOM_USER=$1 export PASSWORD=$2 + + # Do this only on MyDocker where there are 2 IP adresses + echo "$(hostname -I | cut -f2 -d' ') $HOSTNAME" >> /etc/hosts fi -echo "$(hostname -I | cut -f2 -d' ') $HOSTNAME" >> /etc/hosts - exec /init