From: Tom Hughes Date: Sun, 29 Jul 2018 12:17:53 +0000 (+0100) Subject: Install lua for Scribuntu X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/282da5b385d0858ba1159a9b2703e22a815f3d27 Install lua for Scribuntu --- diff --git a/cookbooks/wiki/recipes/default.rb b/cookbooks/wiki/recipes/default.rb index 322612d29..a5b5a8098 100644 --- a/cookbooks/wiki/recipes/default.rb +++ b/cookbooks/wiki/recipes/default.rb @@ -23,6 +23,8 @@ include_recipe "mediawiki" passwords = data_bag_item("wiki", "passwords") +package "lua5.1" # newer versions do not work with Scribuntu! + apache_site "default" do action [:disable] end diff --git a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb index 2d974f55f..4c9eb99ad 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb @@ -3,6 +3,12 @@ wfLoadExtension('Scribunto'); +// Use standalone mode +$wgScribuntoDefaultEngine = 'luastandalone'; + +// Set path to lua interpreter +$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; + // Enable syntax highlighting $wgScribuntoUseGeSHi = true;