settings_php_set: Fix on newer drupal versions

This commit is contained in:
Tom Wiesing 2022-09-14 14:56:40 +02:00
parent feacd4eeae
commit 694e673c38
No known key found for this signature in database

View file

@ -21,7 +21,11 @@ cd /var/www/data/project
chmod u+w web/sites/default/settings.php
(echo "$NAME"; echo "$VALUE" ) | drush php:eval '
include_once DRUPAL_ROOT . "/internal/core/includes/install.inc";
if(is_file(DRUPAL_ROOT . "/internal/")) {
include_once DRUPAL_ROOT . "/internal/core/includes/install.inc";
} else {
include_once DRUPAL_ROOT . "/core/includes/install.inc";
}
// read NAME and VALUE from STDIN
$content=file_get_contents("php://stdin");