provision.sh: Update trusted host patterns

This commit is contained in:
Tom Wiesing 2022-07-12 15:23:46 +02:00
parent 18c4957e30
commit a4b8f09a8a
No known key found for this signature in database
7 changed files with 11 additions and 5 deletions

View 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));
';