Commit 0d82c333 authored by anarcat's avatar anarcat

#1786702 by clemens.tolboom - be nice to non-aegir backups like drush archive

parent c01b005f
......@@ -18,6 +18,7 @@ print '<?php' ?>
*/
<?php if ($this->cloaked): ?>
if (isset($_SERVER['db_name'])) {
/**
* The database credentials are stored in the Apache vhost config
* of the associated site with SetEnv parameters.
......@@ -36,6 +37,7 @@ print '<?php' ?>
'port' => $_SERVER['db_port'],
);
$db_url['default'] = $_SERVER['db_type'] . '://' . $_SERVER['db_user'] . ':' . $_SERVER['db_passwd'] . '@' . $_SERVER['db_host'] . ':' . $_SERVER['db_port'] . '/' . $_SERVER['db_name'];
}
/**
* Now that we used the credentials from the apache environment, we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment