mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
appsv2: fix check that postgresql db exists...
This commit is contained in:
parent
d725b45428
commit
1dc8b75315
1 changed files with 1 additions and 1 deletions
|
@ -1023,7 +1023,7 @@ class DatabaseAppResource(AppResource):
|
|||
elif self.dbtype == "postgresql":
|
||||
return (
|
||||
os.system(
|
||||
f"sudo --login --user=postgres psql -c '' '{db_name}' >/dev/null 2>/dev/null"
|
||||
f"sudo --login --user=postgres psql '{db_name}' -c ';' >/dev/null 2>/dev/null"
|
||||
)
|
||||
== 0
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue