Skip to content

Commit

Permalink
Server: add sudo for shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Jul 11, 2020
1 parent ae811f6 commit 71da9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/aboutInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function shutdownCC () {
// shutdown the companion computer
console.log('Shutting down')
winston.info('Shutting down')
exec('shutdown now', function (error, stdout, stderr) {
exec('sudo shutdown now', function (error, stdout, stderr) {
console.log(stdout)
winston.info(stdout)
})
Expand Down

0 comments on commit 71da9ed

Please sign in to comment.