Skip to content

Commit

Permalink
Add DPkg::Options::=--force-confdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k committed Apr 5, 2023
1 parent 5bf3a58 commit bdca2a1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fuselage/providers/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ def apply(self):

# the search returned 1, package is not installed, continue and install
# it
command = ["apt-get", "install", "-q", "-y", "--force-yes", self.resource.name]
command = [
"apt-get",
"install",
"-q",
"-y",
"--force-yes",
"-o",
"DPkg::Options::=--force-confdef",
self.resource.name
]

try:
self.change(ShellCommand(command, env=env))
Expand Down

0 comments on commit bdca2a1

Please sign in to comment.