We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3bebeb commit 4cb962cCopy full SHA for 4cb962c
container/init-10.sh
@@ -36,6 +36,11 @@ if [ ! -f $DRUPAL_ROOT/sites/default/settings.php ]; then
36
# correct drush installation
37
composer require drush/drush
38
39
+ # add drush to PATH in bash.bashrc for future sessions
40
+ if ! grep -q "/var/www/html/vendor/bin" /etc/bash.bashrc; then
41
+ echo 'export PATH="/var/www/html/vendor/bin:$PATH"' >> /etc/bash.bashrc
42
+ fi
43
+
44
# add drush to PATH for current script execution
45
export PATH="/var/www/html/vendor/bin:$PATH"
46
0 commit comments