ejabberd: Create htdocs parent directory
This commit is contained in:
parent
eae7f237fd
commit
f0186ab3b6
1 changed files with 10 additions and 10 deletions
|
@ -266,22 +266,22 @@ class ejabberd(
|
|||
default: { }
|
||||
}
|
||||
|
||||
$htdocs = '/usr/share/ejabberd/htdocs'
|
||||
|
||||
if $webhosts {
|
||||
include apache::mod::proxy
|
||||
include apache::mod::proxy_http
|
||||
include apache::mod::rewrite
|
||||
|
||||
file { $htdocs:
|
||||
ensure => directory,
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
require => Package['ejabberd'],
|
||||
file { [
|
||||
'/usr/share/ejabberd',
|
||||
'/usr/share/ejabberd/htdocs',
|
||||
]:
|
||||
ensure => directory,
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
}
|
||||
|
||||
file { "${htdocs}/.htaccess":
|
||||
file { '/usr/share/ejabberd/htdocs/.htaccess':
|
||||
ensure => present,
|
||||
mode => '0644',
|
||||
owner => 'root',
|
||||
|
@ -300,7 +300,7 @@ class ejabberd(
|
|||
}
|
||||
|
||||
ejabberd::configwebhost { $webhosts:
|
||||
htdocs => $htdocs,
|
||||
htdocs => '/usr/share/ejabberd/htdocs',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue