docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

New entry in /etc/hosts doesn't get added to new line

Open markshust opened this issue 1 year ago • 4 comments

Description Per https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/8974570 there have been a couple reports of this happening:

Screenshot 2023-05-07 at 9 47 17 AM

Steps To Reproduce I have yet to reproduce this on my local machine, however the code should be checked to ensure that the script properly executes on all different types of host OS's.

Expected Result New entries in /etc/hosts get added to new lines

Actual Result New entries in /etc/hosts get added to the last line in the file

markshust avatar May 07 '23 13:05 markshust

Is anyone able to replicate this?

markshust avatar May 23 '23 11:05 markshust

This was reported by a couple users but I'm unable to replicate, will be closing this out shortly.

markshust avatar Jun 05 '23 19:06 markshust

@markshust i get similar image

Hotpick avatar Jun 06 '23 12:06 Hotpick

@Hotpick what is the contents of your /etc/hosts file on your host machine after running the above line? This ticket is solely for newlines with /etc/hosts, but your post relates back to not being able to connect to a database.

markshust avatar Jul 10 '23 19:07 markshust

I'm unable to replicate this, so closing it out.

markshust avatar Sep 22 '23 03:09 markshust