Last active
August 8, 2017 16:38
-
-
Save szeidler/3dfc67e79551058ae384e5d6d6de949d to your computer and use it in GitHub Desktop.
Add developer tools to docker4drupal (Drush Pachfile, Registry Rebuild)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove and reinstall drush patchfile. | |
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/drush-patchfile" ]; then rm -rf /home/www-data/.drush/drush-patchfile; fi;' | |
docker-compose exec --user 82 php sh -c 'git clone https://[email protected]/szeidler/drush-patchfile.git /home/www-data/.drush/drush-patchfile' | |
# Remove and reinstall registry rebuild. | |
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/registry_rebuild" ]; then rm -rf /home/www-data/.drush/registry_rebuild; fi;' | |
docker-compose exec --user 82 php drush @none dl registry_rebuild-7.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment