Skip to content

Commit

Permalink
Fix unit root
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jul 14, 2024
1 parent e4fe97c commit 3897408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit 3897408

Please sign in to comment.