From 282da5b385d0858ba1159a9b2703e22a815f3d27 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 29 Jul 2018 13:17:53 +0100 Subject: [PATCH] Install lua for Scribuntu --- cookbooks/wiki/recipes/default.rb | 2 ++ .../wiki/templates/default/mw-ext-Scribunto.inc.php.erb | 6 ++++++ 2 files changed, 8 insertions(+) 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; -- 2.39.5