remove absolute path

This commit is contained in:
Kayou 2020-06-16 10:29:52 +02:00 committed by GitHub
parent 6a14e78617
commit 8cb62d5a59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,10 +297,7 @@ function serveYnhpanel()
serveAsset("/ynh_portal.js", "js/ynh_portal.js")
serveAsset("/ynh_overlay.css", "css/ynh_overlay.css")
-- serve theme's files
-- FIXME? I think it would be better here not to use an absolute path
-- but I didn't succeed to figure out where is the current location of the script
-- if you call it from "portal/assets/themes/" the ls fails
scandir("/usr/share/ssowat/portal/assets/themes/"..conf.theme, serveThemeFile)
scandir("themes/"..conf.theme, serveThemeFile)
end
--