packages/net/nginx
Josef Schlehofer 7803fa0744 nginx: install the lua-resty modules where luajit2 finds them
nginx-mod-lua-resty-core and nginx-mod-lua-resty-lrucache install
their Lua files under /usr/lib/lua, but luajit2 looks for Lua files
only under /usr/share/lua and uses /usr/lib/lua for C modules. The lua
module loads resty.core at startup, so once nginx-mod-lua is
installed, nginx does not start unless lua_package_path is set, which
the default configuration does not do:

  [alert] failed to load the 'resty.core' module (...)

Install the files under /usr/share/lua. They are plain Lua modules, so
install them with INSTALL_DATA (0644) instead of INSTALL_BIN (0755).

Fixes: 266be55d55 ("nginx: add required modules for Openresty lua module")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-11-30 11:56:06 +01:00
..
files
…
files-luci-support
…
patches
…
Config_ssl.in
…
Makefile nginx: install the lua-resty modules where luajit2 finds them 2026-11-30 11:56:06 +01:00