Skip to content
Snippets Groups Projects
Verified Commit ab320bd0 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

add hostname only on MyDocker

parent dd6f7137
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment