Skip to content

Prompt PS1 value is wrong when ssh'ing #94

@ustun

Description

@ustun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions