Commit ff2a27b36eb61344d9af93b3f48a197701e2bda0
1 parent
72a3c658a8
Exists in
master
Fix
Showing 2 changed files with 1 additions and 2 deletions Side-by-side Diff
lib/apiserver/routers/smstools-config.js
... | ... | @@ -101,7 +101,7 @@ async function pageModemDelete(req, res) { |
101 | 101 | |
102 | 102 | function pageInstallConfig(req, res) { |
103 | 103 | const fileToExec = `${process.cwd()}/bin/smstools-config-install`; |
104 | - childProcess.execFile(fileToExec, [config.smstools_config_file], (err, stdout, stderr) => { | |
104 | + childProcess.execFile(fileToExec, [config.smstools_config_file || '/etc/smsd.conf'], (err, stdout, stderr) => { | |
105 | 105 | res.json({ |
106 | 106 | err, |
107 | 107 | stdout, |
lib/smstools-config/creator.js