Skip to content

Commit

Permalink
running autoremove in non-interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvey2504 committed Oct 29, 2024
1 parent c72aa14 commit 7006f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def apt_get(action)
cmd = ['apt-get', action]
cmd << '-y' if ['upgrade', 'dist-upgrade', 'autoremove'].include?(action)
if ['upgrade', 'dist-upgrade'].include?(action)
if ['upgrade', 'dist-upgrade', 'autoremove'].include?(action)
ENV['DEBIAN_FRONTEND'] = 'noninteractive'
cmd << '-o'
cmd << 'Dpkg::Options="--force-confdef"'
Expand Down

0 comments on commit 7006f95

Please sign in to comment.