Skip to content

Commit

Permalink
small fix part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Oct 15, 2023
1 parent 7dbb145 commit 9deb0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modoboa_installer/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def add_custom_repository(self,
f"{line_type} [arch=amd64 signed-by={key_file}] "
f"{url} {codename} main"
)
target_file = f"/etc/apt/source.list.d/{name}.list"
target_file = f"/etc/apt/sources.list.d/{name}.list"
tee_option = "-a" if file_exists(target_file) else ""
utils.exec_cmd(f'echo "{line}" | tee {tee_option} {target_file}')
self.index_updated = False
Expand Down

0 comments on commit 9deb0f0

Please sign in to comment.