Add 'call-update-php-hack.sh'
This commit adds a hacky script that can manually call update.php.
This commit is contained in:
parent
e0dbe5b862
commit
f703f9865f
4 changed files with 115 additions and 4 deletions
17
distillery/utils/settings_php_get.sh
Executable file
17
distillery/utils/settings_php_get.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# settings_php_get.sh name
|
||||
# Gets the 'settings_php_get.php' setting 'name' as json-encoded value, or null when it does not exist.
|
||||
|
||||
NAME=$1
|
||||
|
||||
if [ -z "$NAME" ]; then
|
||||
echo "Usage: get_settings_setting.sh NAME"
|
||||
exit 1
|
||||
fi;
|
||||
|
||||
echo "$NAME" | drush php:eval '
|
||||
use \Drupal\Core\Site\Settings;
|
||||
$name=trim(file_get_contents("php://stdin"));
|
||||
echo json_encode(Settings::get($name));
|
||||
';
|
||||
Loading…
Add table
Add a link
Reference in a new issue