about summary refs log tree commit diff
path: root/pkgs/development/node-packages/thelounge-packages-path.patch
blob: c0a9ad80be2f0af795b6e1305385e6b5fa350f0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/helper.js b/src/helper.js
index 27352b53..7078e4c5 100644
--- a/src/helper.js
+++ b/src/helper.js
@@ -110,6 +110,10 @@ function setHome(newPath) {
 	userLogsPath = path.join(homePath, "logs");
 	clientCertificatesPath = path.join(homePath, "certificates");
 
+	if (process.env.THELOUNGE_PACKAGES !== undefined) {
+		packagesPath = process.env.THELOUNGE_PACKAGES;
+	}
+
 	// Reload config from new home location
 	if (fs.existsSync(configPath)) {
 		const userConfig = require(configPath);