Commit 059ad2f7 authored by André Kerkhoff's avatar André Kerkhoff
Browse files

Use foswiki_extensions_repository for {ExtensionsRepositories}

parent c827a3b2
......@@ -3,7 +3,7 @@ maintainer 'HPC'
maintainer_email 'hpc@gsi.de'
license 'All rights reserved'
description 'Installs/Configures Foswiki'
version '2.2.8'
version '2.2.9'
depends 'apache2', '< 6.0'
supports 'debian'
supports 'ubuntu'
......@@ -61,6 +61,17 @@ unless new_config['PROXY'].nil? || new_config['PROXY']['HOST'].nil?
tools_dir tools_dir
end
end
unless new_config['ExtensionsRepositories'].nil?
new_config['ExtensionsRepositories'].each do |repo|
name, url = repo.split('=(', 2)
wurl, purl = url.split(',', 2)
foswiki_extensions_repository name do
web_url wurl
pub_url purl.chomp(')')
end
end
new_config.delete('ExtensionsRepositories')
end
foswiki_configure 'foswiki' do
config new_config
tools_dir tools_dir
......
Supports Markdown
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