-
-
Notifications
You must be signed in to change notification settings - Fork 642
Cannot write to file via post_provision_scripts #880
Comments
@reekris this will likely be running with sudo using the You could add it to However, I prefer to use a This way you can tell drush to always use the local version, I'm not sure if drupal console has a similar option. |
@thom8 Thanks for the help! Not sure how I would go about adding my script to /etc/profile.d? Can that be done during provisioning somehow? Changing my script to point to .drush-use seems like a nice alternative for Drush, but I'm not aware of any similar solution for Drupal Console. |
Good to hear you've got it working, if you're familiar with anisble you could also use a custom ansible task -- http://docs.drupalvm.com/en/latest/extras/scripts/#ansible-task-files just include a BTW - I've got a PR open on the composer role which could solve this too ;) -- geerlingguy/ansible-role-composer#26 |
Nice! Hopefully it gets merged then 👍 |
After provisioning my box I want to add the path of my composer vendor/bin dir which contains local versions of Drupal Console and Drush downloaded via composer.
To do this I have the following in my config.yml:
My vagrant-post-provision.sh looks like this:
I don't get any errors while provisioning and it runs the task according to the console output.
However my ~/.profile file does not change.
If I manually do
vagrant ssh
and run the commandsh /var/www/site/scripts/vagrant-post-provision.sh
It adds a row to my ~/.profile as expected.
Any idea what I might be doing wrong?
The text was updated successfully, but these errors were encountered: