Skip to content

Commit

Permalink
Merge pull request #362 from plesk/bind-config-handle-directories-as-…
Browse files Browse the repository at this point in the history
…well

Create fodlers for missing bind configurations as well
  • Loading branch information
SandakovMM authored Oct 4, 2024
2 parents 8f126d3 + 0493584 commit f9052fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions centos2almaconverter/actions/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def _is_required(self) -> bool:

def _handle_included_file(self, chrooted_file: str):
target_file = chrooted_file.replace(self.chrooted_configuration_path, "")

target_file_directory = os.path.dirname(target_file)
if not os.path.exists(target_file_directory):
os.makedirs(target_file_directory)

if not os.path.exists(target_file):
if os.path.exists(chrooted_file):
os.symlink(chrooted_file, target_file)
Expand Down

0 comments on commit f9052fd

Please sign in to comment.