Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly call the PHP binary to avoid errors when installing the site #387

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion commands/install.bee.inc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ function install_bee_callback($arguments, $options) {

// Run the install script.
bee_render_text(array('value' => bt("\nInstalling Backdrop. This may take a moment...\n")));
$result = exec("cd $_bee_backdrop_root && ./core/scripts/install.sh $url $db $db_prefix $username $password $email $site_name $site_mail $langcode $clean_urls $profile");
// The core/scripts/install.sh binary is not installed as executable by
// default. Call it explicitly via the currently-specified PHP binary.
$php_bin = PHP_BINARY;
$result = exec("cd $_bee_backdrop_root && $php_bin ./core/scripts/install.sh $url $db $db_prefix $username $password $email $site_name $site_mail $langcode $clean_urls $profile");
// Strip tags to prevent HTML code being output.
bee_render_text(array('value' => strip_tags($result)));

Expand Down
Loading