Skip to content

Commit

Permalink
chore: binary permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Nov 15, 2024
1 parent 54962b9 commit 45f6280
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deploy/codebase/lamassu-machine-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,17 @@ function updateSupervisor (cb) {
async.apply(command, `sed -i 's|^user=.*\$|user=${osuser}|;' /etc/supervisor/conf.d/lamassu-browser.conf || true`)
]

commands.push(async.apply(command, `supervisorctl update ${services}`))
commands.push(async.apply(command, `supervisorctl stop ${services}`))

if (machineCode == 'aveiro') {
LOG("Updating GSR50")
commands.push(async.apply(command, `cp ${applicationParentFolder}/lamassu-machine/lib/gsr50/binaries/* /opt/FujitsuGSR50/`))
commands.push(async.apply(command, `chmod +x /opt/FujitsuGSR50/FujitsuGSR50`))
}

commands.push(async.apply(command, `supervisorctl update ${services}`))

commands.push(async.apply(command, `supervisorctl restart ${services}`))

async.series(commands, err => {
if (err) throw err;
cb()
Expand Down

0 comments on commit 45f6280

Please sign in to comment.