Skip to content

Commit 4cb962c

Browse files
committed
refs #45702, fixes drush command not in PATH
1 parent a3bebeb commit 4cb962c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

container/init-10.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ if [ ! -f $DRUPAL_ROOT/sites/default/settings.php ]; then
3636
# correct drush installation
3737
composer require drush/drush
3838

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+
3944
# add drush to PATH for current script execution
4045
export PATH="/var/www/html/vendor/bin:$PATH"
4146

0 commit comments

Comments
 (0)