mirror of
https://github.com/unraid/api.git
synced 2026-01-13 20:19:56 -06:00
fix: Make sure the process changes to the cwd
This commit is contained in:
@@ -72,6 +72,9 @@ const commands = {
|
||||
// Set process title
|
||||
process.title = 'unraid-api';
|
||||
|
||||
// Set cwd
|
||||
process.chdir('/usr/local/bin/node/unraid-api/');
|
||||
|
||||
// Set envs
|
||||
setEnv('DEBUG', mainOptions.debug);
|
||||
setEnv('ENVIRONMENT', environment);
|
||||
|
||||
Reference in New Issue
Block a user