This commit is contained in:
S. Nameche
2025-01-28 21:04:44 +03:00
parent 5313abf42b
commit 5fbf373dc2
2 changed files with 3 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ class PostgreSQL(Database):
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