From 4de02058a1a6db8600c476c2759925b76a52434d Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sat, 14 Sep 2024 15:24:22 +0800 Subject: [PATCH] Fix lms.conf --- conf/lms.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git conf/lms.conf conf/lms.conf index 4fcca840..14aa01ce 100644 --- conf/lms.conf +++ conf/lms.conf @@ -2,10 +2,10 @@ # Path to the working directory # Must have write privileges in order to create and modify this directory -working-dir = "/var/lms/"; +working-dir = "@PREFIX@/var/lms/"; # ffmpeg location -ffmpeg-file = "/usr/bin/ffmpeg"; +ffmpeg-file = "@PREFIX@/bin/ffmpeg"; # Log files, empty means stdout log-file = ""; @@ -22,14 +22,14 @@ behind-reverse-proxy = false; # If enabled, these files have to exist and have correct permissions tls-enable = false; -tls-cert = "/var/lms/cert.pem"; -tls-key = "/var/lms/privkey.pem"; -tls-dh = "/var/lms/dh2048.pem"; +tls-cert = "@PREFIX@/var/lms/cert.pem"; +tls-key = "@PREFIX@/var/lms/privkey.pem"; +tls-dh = "@PREFIX@/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"; +wt-resources = "@PREFIX@/share/Wt/resources"; +docroot = "@PREFIX@/share/lms/docroot/;/resources,/css,/images,/js,/favicon.ico"; +approot = "@PREFIX@/share/lms/approot"; # Location for deployment (See README if you want to deploy on a non root path) deploy-path = "/"; --- src/libs/core/include/core/SystemPaths.hpp 2024-10-12 03:51:40.000000000 +0800 +++ src/libs/core/include/core/SystemPaths.hpp 2024-10-31 10:00:19.000000000 +0800 @@ -23,5 +23,5 @@ namespace lms::core { - static inline const std::filesystem::path sysconfDirectory{ "/etc" }; -} \ No newline at end of file + static inline const std::filesystem::path sysconfDirectory{ "@PREFIX@/etc" }; +}