Skip to content

Commit

Permalink
Updated path of update_check.sh
Browse files Browse the repository at this point in the history
Changed path of update_check.sh to match location in /app

Location of update_check.sh was changed in the commit below but this script was not updated to match.

Didstopia@ad95963
  • Loading branch information
Morgyn authored Dec 27, 2021
1 parent 528192d commit adb2a11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scheduler_app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ setTimeout(function () {

function checkForUpdates () {
setTimeout(function () {
if (debug) console.log('SchedulerApp::Running bash /update_check.sh')
childProcess.exec('bash /update_check.sh', { env: process.env }, function (err, stdout, stderr) {
if (debug) console.log('SchedulerApp::bash /update_check.sh STDOUT: ' + stdout)
if (debug && err) console.log('SchedulerApp::bash /update_check.sh ERR: ' + err)
if (debug && stderr) console.log('SchedulerApp::bash /update_check.sh STDERR: ' + stderr)
if (debug) console.log('SchedulerApp::Running bash /app/update_check.sh')
childProcess.exec('bash /app/update_check.sh', { env: process.env }, function (err, stdout, stderr) {
if (debug) console.log('SchedulerApp::bash /app/update_check.sh STDOUT: ' + stdout)
if (debug && err) console.log('SchedulerApp::bash /app/update_check.sh ERR: ' + err)
if (debug && stderr) console.log('SchedulerApp::bash /app/update_check.sh STDERR: ' + stderr)
checkForUpdates()
})
}, 1000 * runIntervalInSeconds)
Expand Down

0 comments on commit adb2a11

Please sign in to comment.