From 38974088e0080813c064ec93184b47119c4b51b7 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sun, 14 Jul 2024 23:19:06 +0700 Subject: [PATCH] Fix unit root --- src/executor/unit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor/unit.js b/src/executor/unit.js index 021d0c8..ff47ef9 100644 --- a/src/executor/unit.js +++ b/src/executor/unit.js @@ -38,7 +38,7 @@ class UnitExecutor { } sandbox(config, domainname, domain) { let username = domain['Username']; - let wd = ((config['app_root'] + '') || (domain['Parent domain'] ? `domains/${domainname}/public_html` : 'public_html')); + let wd = (config['app_root'] || (domain['Parent domain'] ? `domains/${domainname}/public_html` : 'public_html')); wd = `/home/${username}/${wd}`.replace(/\/+/g, '/'); wd.endsWith('/') && (wd = wd.substring(0, -1)); let logbase = domain['Parent domain'] ? `/home/${username}/domains/${domainname}/logs` : `/home/${username}/logs`;