mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
F*ck mysql
This commit is contained in:
parent
357f85d9e8
commit
f60f616047
1 changed files with 5 additions and 2 deletions
|
@ -181,6 +181,9 @@ def app_install(app, domain, path='/', label=None, mode='private'):
|
|||
# Define App ID & path #
|
||||
#########################################
|
||||
|
||||
if path[len(path)-1:] != '/':
|
||||
path = path + '/'
|
||||
|
||||
if not lvl(manifest, 'yunohost', 'uid') or '__' in manifest['yunohost']['uid']:
|
||||
raise YunoHostError(22, _("App uid is invalid"))
|
||||
|
||||
|
@ -221,8 +224,8 @@ def app_install(app, domain, path='/', label=None, mode='private'):
|
|||
#########################################
|
||||
|
||||
if lvl(manifest, 'yunohost', 'webapp', 'db'):
|
||||
db_user = unique_app_id
|
||||
db_pwd = random_password()
|
||||
db_user = random_password(10)
|
||||
db_pwd = random_password(12)
|
||||
script_var_dict['DB_USER'] = db_user
|
||||
script_var_dict['DB_PWD'] = db_pwd
|
||||
script_var_dict['DB_NAME'] = db_user
|
||||
|
|
Loading…
Add table
Reference in a new issue