Commit 6b912cda authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

in progress commit

parent e43fcc81
......@@ -72,9 +72,6 @@ function provision_drupal_provision_templates() {
* If the file exists, return TRUE, else return FALSE.
*/
function _provision_drupal_site_exists($url) {
#safety mechanism to ensure back end calls are not made via the front end.
if (!provision_confirm_drush()) return null;
return file_exists("sites/$url/settings.php");
}
......@@ -83,9 +80,6 @@ function _provision_drupal_site_exists($url) {
* Implentation of hook_provision_backup()
*/
function provision_drupal_provision_backup($url, $data) {
#safety mechanism to ensure back end calls are not made via the front end.
if (!provision_confirm_drush()) return null;
// Adds the site directory into the backup file
provision_log("backup", "Adding sites directory to $data[backup_file].gz");
$result = provision_shell_exec("cd %s; tar -rf %s * ", "sites/$url", $data['backup_file']);
......
......@@ -395,7 +395,7 @@ function _provision_config_path() {
$path = ($_SERVER['PWD']) ? $_SERVER['PWD'] : $_SERVER['DOCUMENT_ROOT'];
$parts = explode("/", $path);
array_pop($parts);
return variable_get('provision_apache_config_path', implode("/" , $parts) . '/config') ;
return variable_get('provision_config_path', implode("/" , $parts) . '/config') ;
}
/**
......
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