We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb61d9 commit 3d1bb8dCopy full SHA for 3d1bb8d
container/init-10.sh
@@ -32,7 +32,18 @@ cd $DRUPAL_ROOT
32
if [ ! -f $DRUPAL_ROOT/sites/default/settings.php ]; then
33
cd /var/www/html
34
composer update "drupal/core-*" --with-all-dependencies
35
+
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
47
echo "Install Drupal ..."
48
date +"@ %Y-%m-%d %H:%M:%S %z"
49
sleep 5s
0 commit comments