Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt PS1 value is wrong when ssh'ing #94

Open
ustun opened this issue Sep 26, 2019 · 1 comment
Open

Prompt PS1 value is wrong when ssh'ing #94

ustun opened this issue Sep 26, 2019 · 1 comment

Comments

@ustun
Copy link

ustun commented Sep 26, 2019

When using the ssh feature in Azure Portal, the initial prompt value shows the current folder as /home/site/wwwroot even though the pwd is /home. See the attached screenshot. I think the current behaviour is misleading.

As verified by Azure Support,

On this line https://github.com/Azure-App-Service/node/blob/master/10.10/Dockerfile#L40 we set the WORKDIR as /home/site/wwwroot which is why when you SSH in the prompt displays /home/site/wwwroot

But on this line https://github.com/Azure-App-Service/node/blob/master/10.10/Dockerfile#L9 we add cd /home to /etc/bash.bashrc so that whenever the shell is called (such as when an SSH operation is performed) the cd /home is executed and therefore the current directory is actually set to /home

Screen Shot 2019-09-24 at 3 35 13 PM

@ustun
Copy link
Author

ustun commented Oct 22, 2019

This seems to be working fine now. I think it was fixed, but I didn't hear anything from Azure support regarding this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant