mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update src/utils/resources.py
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
32376cf18f
commit
ee4d94d382
1 changed files with 1 additions and 1 deletions
|
@ -1338,7 +1338,7 @@ class DatabaseAppResource(AppResource):
|
||||||
def provision_or_update(self, context: Dict = {}):
|
def provision_or_update(self, context: Dict = {}):
|
||||||
# This is equivalent to ynh_sanitize_dbid
|
# This is equivalent to ynh_sanitize_dbid
|
||||||
db_user = self.app.replace("-", "_").replace(".", "_")
|
db_user = self.app.replace("-", "_").replace(".", "_")
|
||||||
db_name = self.get_setting("db_name") || db_user
|
db_name = self.get_setting("db_name") or db_user
|
||||||
self.set_setting("db_name", db_name)
|
self.set_setting("db_name", db_name)
|
||||||
self.set_setting("db_user", db_user)
|
self.set_setting("db_user", db_user)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue