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

chmod of default file not working. #6

Closed
mariacha opened this issue Mar 23, 2018 · 1 comment
Closed

chmod of default file not working. #6

mariacha opened this issue Mar 23, 2018 · 1 comment

Comments

@mariacha
Copy link
Collaborator

This line:
https://github.com/thinkshout/robo-drupal/blob/master/src/Tasks.php#L397

assumes we'll be getting the sftp command line string from Pantheon but we aren't getting it anymore. I have to assume it's an upstream Robo change.

This issue:
consolidation/robo#382

says we should be using a different method to get stuff from the system.

The chmod of settings files just isn't happening anymore.

Perhaps there's a way to do this without reading the SFTP command? Drush exec?

@unclegcb
Copy link
Member

Well, I got us this far:

Running sftp -b - -o Port=2222 develop.a9177577-e604-4592-8708-802a0a852307@appserver.develop.a9177577-e604-4592-8708-802a0a852307.drush.in << EOF
chmod 644 code/web/sites/default
chmod 644 code/web/sites/default/settings.php
EOF
Warning: Permanently added '[appserver.develop.a9177577-e604-4592-8708-802a0a852307.drush.in]:2222,[130.211.202.80]:2222' (RSA) to the list of known hosts.

sftp> chmod 644 code/web/sites/default
sftp> chmod 644 code/web/sites/default/settings.php
Couldn't setstat on "/srv/bindings/1c30651192e04aa6b498676a6b27105e/code/web/sites/default/settings.php": Permission denied

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

2 participants