Skip to content

Use proper envvars for DB credentials in D7 version #50

Description

@tormi

https://github.com/wunderio/drupal-ping/blob/7.x/_ping.php#L301-L311 is using envvars with suffix _DRUPAL:

    // Echo "$DB_HOST_DRUPAL-$DB_NAME_DRUPAL-$DB_PASS_DRUPAL-$DB_PORT_DRUPAL-$DB_USER_DRUPAL"
    // | md5sum.
    if (!empty(getenv('DB_NAME_DRUPAL'))) {
      $host = getenv('DB_HOST_DRUPAL');
      $name = getenv('DB_NAME_DRUPAL');
      $pass = getenv('DB_PASS_DRUPAL');
      $port = getenv('DB_PORT_DRUPAL');
      $user = getenv('DB_USER_DRUPAL');
      $code = md5("$host-$name-$pass-$port-$user");
      return $code;
    }

Should we use DB_ envvars defined here instead: https://github.com/wunderio/charts/blob/master/drupal/files/settings.silta.d7.php ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions