--- a/mod_admin_web/README.markdown Thu Oct 08 12:26:56 2020 +0200
+++ b/mod_admin_web/README.markdown Thu Oct 08 13:49:08 2020 +0200
@@ -6,11 +6,12 @@
build:
platforms:
unix:
- copy_directories:
- - admin_web/www_files
type: command
- build_command: sh admin_web/get_deps.sh
- install_command: cp admin_web/mod_admin_web.lua $(LUADIR)
+ build_command: cd admin_web; sh get_deps.sh
+ install_command: |
+ cd admin_web;
+ cp mod_admin_web.lua $(LUADIR);
+ cp -r www_files $(PREFIX);
...
Introduction
--- a/mod_admin_web/admin_web/mod_admin_web.lua Thu Oct 08 12:26:56 2020 +0200
+++ b/mod_admin_web/admin_web/mod_admin_web.lua Thu Oct 08 13:49:08 2020 +0200
@@ -133,7 +133,7 @@
local path = module:get_directory() .. "/www_files";
if module.resource_path then
-- Available from trunk be73df6765b9 if installed via luarocks
- path = module.resource_path .. "/admin_web/www_files";
+ path = module.resource_path .. "/www_files";
end
local serve_file = serve {
path = path;