65 |
} |
} |
66 |
} |
} |
67 |
|
|
68 |
|
define apache_writable_dir() { |
69 |
|
file { "$forums_dir/$lang/phpBB/$name": |
70 |
|
ensure => directory, |
71 |
|
owner => apache, |
72 |
|
group => root, |
73 |
|
mode => 755, |
74 |
|
require => Exec["git_clone $lang"], |
75 |
|
} |
76 |
|
} |
77 |
|
|
78 |
# TODO find a way to avoid all the phpbb::base prefix |
# TODO find a way to avoid all the phpbb::base prefix |
79 |
define instance() { |
define instance() { |
80 |
include phpbb::base |
include phpbb::base |
105 |
|
|
106 |
# list found by reading ./install/install_install.php |
# list found by reading ./install/install_install.php |
107 |
# end of check_server_requirements ( 2 loops ) |
# end of check_server_requirements ( 2 loops ) |
108 |
$writable_dir = ['cache', |
apache_writable_dir { ['cache', |
109 |
'images/avatars/upload', |
'images/avatars/upload', |
110 |
'files', |
'files', |
111 |
'store', |
'store' ]: |
|
] |
|
|
file { "$forums_dir/$lang/phpBB/$writable_dir": |
|
|
ensure => directory, |
|
|
owner => apache, |
|
|
group => root, |
|
|
mode => 755, |
|
|
require => Exec["git_clone $lang"], |
|
112 |
} |
} |
113 |
|
|
114 |
file { "$forums_dir/$lang/phpBB/config.php": |
file { "$forums_dir/$lang/phpBB/config.php": |