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

Fix .env Files for Isolated Users #496

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

RichardAnderson
Copy link
Member

Resolves #495

Comment on lines +115 to +117
$command = addslashes($command);
$command = str_replace('\\\'', '\'', $command);
$command = 'sudo su - '.$this->asUser.' -c '.'"'.trim($command).'"';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running the command within double quotes, means we don't need to escape single quotes, as these will not be considered as an escape from the double quotes. This allows us to parse files effectively through SSH instead of SFTP, saving us a connection and a headache with access.

@saeedvaziry
Copy link
Member

@RichardAnderson were you able to reproduce the issue?

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

Successfully merging this pull request may close these issues.

Cannot update .env
2 participants