Update access.lua

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Alexandre Aubin 2020-09-21 14:40:37 +02:00 committed by GitHub
parent 41ed91bbcb
commit 06f1f30226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,9 +206,10 @@ end
-- --
if is_logged_in then if is_logged_in then
assets = {} assets = {
assets["/ynh_portal.js"] = "js/ynh_portal.js" ["/ynh_portal.js"] = "js/ynh_portal.js",
assets["/ynh_overlay.css"] = "css/ynh_overlay.css" ["/ynh_overlay.css"] = "css/ynh_overlay.css"
}
theme_dir = "/usr/share/ssowat/portal/assets/themes/"..conf.theme theme_dir = "/usr/share/ssowat/portal/assets/themes/"..conf.theme
local pfile = io.popen('find "'..theme_dir..'" -type f -exec realpath --relative-to "'..theme_dir..'" {} \\;') local pfile = io.popen('find "'..theme_dir..'" -type f -exec realpath --relative-to "'..theme_dir..'" {} \\;')
for filename in pfile:lines() do for filename in pfile:lines() do