64 |
} |
} |
65 |
} |
} |
66 |
|
|
|
define apache_writable_dir() { |
|
|
file { "$forums_dir/$lang/phpBB/$name": |
|
|
ensure => directory, |
|
|
owner => apache, |
|
|
group => root, |
|
|
mode => 755, |
|
|
require => Exec["git_clone $lang"], |
|
|
} |
|
|
} |
|
|
|
|
67 |
# TODO find a way to avoid all the phpbb::base prefix |
# TODO find a way to avoid all the phpbb::base prefix |
68 |
define instance() { |
define instance() { |
69 |
include phpbb::base |
include phpbb::base |
94 |
|
|
95 |
# list found by reading ./install/install_install.php |
# list found by reading ./install/install_install.php |
96 |
# end of check_server_requirements ( 2 loops ) |
# end of check_server_requirements ( 2 loops ) |
97 |
apache_writable_dir { ['cache', |
|
98 |
'images/avatars/upload', |
$writable_dirs = ['cache', |
99 |
'files', |
'images/avatars/upload', |
100 |
'store' ]: |
'files', |
101 |
|
'store' ] |
102 |
|
|
103 |
|
$dir_names = regsubst($writable_dirs,'^',"$forums_dir/$lang/phpBB/") |
104 |
|
|
105 |
|
file { $dir_names: |
106 |
|
ensure => directory, |
107 |
|
owner => apache, |
108 |
|
group => root, |
109 |
|
mode => 755, |
110 |
|
require => Exec["git_clone $lang"], |
111 |
} |
} |
112 |
|
|
113 |
file { "$forums_dir/$lang/phpBB/config.php": |
file { "$forums_dir/$lang/phpBB/config.php": |