Added an option to set wt's resources directory
This commit is contained in:
@@ -42,8 +42,3 @@ lms_approot_DATA = \
|
||||
sysconf_DATA = \
|
||||
$(top_srcdir)/conf/lms.conf
|
||||
|
||||
install-data-hook:
|
||||
ln -s $(datadir)/Wt/resources $(lms_docrootdir)/resources || echo "Skipped symlink creation"
|
||||
|
||||
uninstall-local:
|
||||
cd $(lms_docrootdir) && rm -f -r $(lms_docrootdir)/resources
|
||||
|
||||
@@ -55,7 +55,7 @@ lms [config_file]
|
||||
```
|
||||
Logs are output in the working directory, in the file 'lms.log'
|
||||
|
||||
To connect to LMS, just open your favorite browser and go to http://localhost:5081
|
||||
To connect to LMS, just open your favorite browser and go to http://localhost:5082
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ tls-key = "/var/lms/privkey.pem";
|
||||
tls-dh = "/var/lms/dh2048.pem";
|
||||
|
||||
# Path to the resources used by the web interface
|
||||
wt-resources="/usr/share/Wt/resources";
|
||||
docroot = "/usr/share/lms/docroot/;/resources,/css,/images,/js,/favicon.ico";
|
||||
approot = "/usr/share/lms/approot";
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ std::vector<std::string> generateWtConfig(std::string execPath)
|
||||
args.push_back("--config=" + wtConfigPath.string());
|
||||
args.push_back("--docroot=" + Config::instance().getString("docroot"));
|
||||
args.push_back("--approot=" + Config::instance().getString("approot"));
|
||||
args.push_back("--resources-dir=" + Config::instance().getString("wt-resources"));
|
||||
|
||||
if (Config::instance().getBool("tls-enable", false))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user