Commit b861b19f authored by drumm's avatar drumm Committed by Neil Drumm

Sync apache_conf_path on server verify, because no auto-generated config files will.

parent d37bf85a
......@@ -40,6 +40,11 @@ class provisionService_http_apache extends provisionService_http {
}
function create_server_config() {
d()->service('file')->create_dir($this->apache_site_conf_path, dt("Virtual host configuration"), 0700);
d()->service('file')->create_dir($this->apache_platform_conf_path, dt("Platforms configuration"), 0700);
d()->service('file')->create_dir($this->apache_conf_path , dt("Apache configuration"), 0700);
d()->service('file')->sync($this->apache_conf_path);
$config = new provisionConfig_apache_server($this->context);
return $config->write();
}
......@@ -53,10 +58,6 @@ class provisionService_http_apache extends provisionService_http {
function verify() {
switch (d()->type) {
case 'server':
d()->service('file')->create_dir($this->apache_site_conf_path, dt("Virtual host configuration"), 0700);
d()->service('file')->create_dir($this->apache_platform_conf_path, dt("Platforms configuration"), 0700);
d()->service('file')->create_dir($this->apache_conf_path , dt("Apache configuration"), 0700);
$this->create_server_config();
break;
......
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