Skip to content

Commit

Permalink
Fix drush wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Nov 14, 2024
1 parent 24f0418 commit f2d562f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drupal/rootfs/usr/local/bin/drush
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -e
# regardless of which shell is used or how it is started (login, interactive, etc)
if test "$(id -u)" -eq 0; then
# If root run as nginx.
s6-setuidgid nginx php -d memory_limit=-1 /var/www/drupal/vendor/bin/drush "${@}"
s6-setuidgid nginx php -d memory_limit=-1 /var/www/drupal/vendor/bin/drush.php "${@}"
else
# If non-root user, then run as current user
# as we do not have permissions to switch user.
php -d memory_limit=-1 /var/www/drupal/vendor/bin/drush "${@}"
php -d memory_limit=-1 /var/www/drupal/vendor/bin/drush.php "${@}"
fi

0 comments on commit f2d562f

Please sign in to comment.