Skip to content

Commit

Permalink
Merge pull request #2771 from FroggyFlox/2757-Failure-to-correct-poet…
Browse files Browse the repository at this point in the history
…ry-paths-after-update

Account for eventual double slahes in the conversion from legacy to poetry paths #2757
  • Loading branch information
phillxnet authored Dec 21, 2023
2 parents 38da123 + ac26f15 commit b870fa2
Show file tree
Hide file tree
Showing 2 changed files with 2,381 additions and 1,305 deletions.
2 changes: 1 addition & 1 deletion src/rockstor/scripts/initrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def establish_poetry_paths():
The local files in questions are defined in the LOCAL_FILES constant.
"""
logger.info("### BEGIN Establishing poetry path to binaries in local files...")
pattern = "/opt/rockstor/bin/"
pattern = "/opt/rockstor[/]+bin/"
replacement = "/opt/rockstor/.venv/bin/"
for local_file in LOCAL_FILES:
if os.path.isfile(LOCAL_FILES[local_file].path):
Expand Down
Loading

0 comments on commit b870fa2

Please sign in to comment.