Skip to content

Commit

Permalink
Merge pull request #581 from seb4itik/master
Browse files Browse the repository at this point in the history
Fix #561 and #576
  • Loading branch information
tonioo authored Jan 29, 2025
2 parents 5313abf + 5fbf373 commit 7809250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modoboa_installer/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def create_user(self, name, password):
def create_database(self, name, owner):
"""Create a database."""
code, output = utils.exec_cmd(
"psql -lqt | cut -d \| -f 1 | grep -w {} | wc -l"
"psql -lqt | cut -d \\| -f 1 | grep -w {} | wc -l"
.format(name), sudo_user=self.dbuser)
if code:
return
Expand Down
4 changes: 2 additions & 2 deletions modoboa_installer/scripts/modoboa.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def _setup_venv(self):
req_version = matrix[extension]
if req_version is None:
continue
req_version = req_version.replace("<", "\<")
req_version = req_version.replace(">", "\>")
req_version = req_version.replace("<", "\\<")
req_version = req_version.replace(">", "\\>")
packages.append("{}{}".format(extension, req_version))
else:
packages.append(extension)
Expand Down

0 comments on commit 7809250

Please sign in to comment.