Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

core: install additional modules listed in site config.

Since there may be additional modules needed by a site during install,
it is now possible to list them in the site config with a 'modules' key,
when using the 'empty' skeleton:

[
        ...
        {skeleton, empty},
        {modules, [mod_foo, mod_bar]},
        ...
].
  • Loading branch information...
commit 03136c280638e123b6db78afc47c69a4eefdf609 1 parent c87a46e
@kaos kaos authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/install/z_install_data.erl
View
2  src/install/z_install_data.erl
@@ -114,6 +114,8 @@ install_modules(empty, Host, C) ->
%% The site-specific site
atom_to_list(Host)
+ %% plus any from the site config
+ |proplists:get_value(modules, z_sites_manager:get_site_config(Host), [])
],
install_modules(Modules, C);
install_modules(nodb, _, _) ->
Please sign in to comment.
Something went wrong with that request. Please try again.