When I run drush updatedb from within a bash script, I get:

A Drupal installation directory could not be found
Command updatedb needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command.
The command 'drush.php updatedb' could not be executed.

However when I run it from shell normally, it works just fine.
Any idea's?
Thanks,
-Chris

Comments

ChrisRut’s picture

I needed to use the '--root=' command in my bash script in order to get it to work properly.