From 45f6280242525917b2236164dc574a7d54e1ddd8 Mon Sep 17 00:00:00 2001 From: Rafael Date: Fri, 15 Nov 2024 09:11:18 +0000 Subject: [PATCH] chore: binary permissions --- deploy/codebase/lamassu-machine-manager.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/codebase/lamassu-machine-manager.js b/deploy/codebase/lamassu-machine-manager.js index 9829ac62f..f3b3db4ec 100644 --- a/deploy/codebase/lamassu-machine-manager.js +++ b/deploy/codebase/lamassu-machine-manager.js @@ -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()