mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
resources/db: ensure dbtype is valid
This commit is contained in:
parent
b8a1a3a660
commit
e12d79390f
1 changed files with 2 additions and 0 deletions
|
@ -1458,6 +1458,8 @@ class DatabaseAppResource(AppResource):
|
|||
db_helper_name = "mysql"
|
||||
elif self.dbtype == "postgresql":
|
||||
db_helper_name = "psql"
|
||||
else:
|
||||
raise RuntimeError(f"Invalid dbtype {self.dbtype}")
|
||||
|
||||
self._run_script(
|
||||
"deprovision", f"""
|
||||
|
|
Loading…
Add table
Reference in a new issue