Commit 418e5f63 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Add configuration for apache restart command

parent 41c9a8e5
...@@ -343,6 +343,13 @@ function provision_drupal_provision_verify($url, &$data) { ...@@ -343,6 +343,13 @@ function provision_drupal_provision_verify($url, &$data) {
} }
function provision_drupal_find_sites() {
$sites = file_scan_directory('./sites', 'site\.php$', array('.', '..', 'CVS', '.svn'), 0, TRUE, 'name', 0);
}
function provision_drupal_restore($url, $backup_file, &$data) { function provision_drupal_restore($url, $backup_file, &$data) {
provision_shell_exec("tar -zxf %s -C sites/%s", $backup_file, $url); # checkout over old sites dir. provision_shell_exec("tar -zxf %s -C sites/%s", $backup_file, $url); # checkout over old sites dir.
} }
......
...@@ -89,7 +89,7 @@ function provision_apache_provision_configure($node = null) { ...@@ -89,7 +89,7 @@ function provision_apache_provision_configure($node = null) {
'#title' => t('Apache restart command'), '#title' => t('Apache restart command'),
'#required' => TRUE, '#required' => TRUE,
'#description' => t('The command to run to restart apache for new changes to take effect. This is required for the new site to become live'), '#description' => t('The command to run to restart apache for new changes to take effect. This is required for the new site to become live'),
'#default_value' => variable_get('provision_restart_cmd', 'sudo apachectl graceful'), '#default_value' => $node->restart_cmd ? $node->restart_cmd : variable_get('provision_restart_cmd', 'sudo apachectl graceful'),
'#size' => 40, '#size' => 40,
'#maxlength' => 255, '#maxlength' => 255,
); );
......
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