Fix up paths to install directory

This commit is contained in:
2014-11-23 23:41:37 +00:00
parent cafc0d0a08
commit ea5946187f
2 changed files with 8 additions and 14 deletions

View File

@@ -43,21 +43,15 @@ class dokuwiki::config (
$superuser = $dokuwiki::superuser,
) {
if $base_path == '' or $base_path =~ /\/$/ {
$base_path_suffix = ''
} else {
$base_path_suffix = '/'
}
file {
"${install_dir}/${base_path}${base_path_suffix}conf/local.php":
"${install_dir}/htdocs/${base_path}conf/local.php":
content => template($local_conf_template),
owner => 'root',
group => 'root',
mode => '0444',
replace => false;
"${install_dir}/${base_path}${base_path_suffix}conf/local.protected.php":
"${install_dir}/htdocs/${base_path}conf/local.protected.php":
content => template($protected_conf_template),
owner => 'root',
group => 'root',