Skip to content

Commit

Permalink
fix: noninteractive mode for apt updating
Browse files Browse the repository at this point in the history
  • Loading branch information
markwylde committed Oct 13, 2023
1 parent 4293938 commit 633e412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/updateDebian.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const updateDebian = async (connection) => {
await connection.exec([
'sudo apt-get -qy update',
'sudo apt-get -qy upgrade',
'sudo apt-get -qy autoremove'
'DEBIAN_FRONTEND=noninteractive sudo apt-get -qy update',
'DEBIAN_FRONTEND=noninteractive sudo apt-get -qy upgrade',
'DEBIAN_FRONTEND=noninteractive sudo apt-get -qy autoremove'
].join('\n'));
};

Expand Down

0 comments on commit 633e412

Please sign in to comment.