mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use getopts helpers in mysql
This commit is contained in:
parent
d3a501aa41
commit
8c600e1e0b
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ ynh_mysql_setup_db () {
|
|||
db_password="${db_password:-$new_db_pwd}"
|
||||
|
||||
ynh_mysql_create_db "$db_name" "$db_user" "$db_password" # Create the database
|
||||
ynh_app_setting_set $app mysqlpwd $db_password # Store the password in the app's config
|
||||
ynh_app_setting_set --app=$app --key=mysqlpwd --value=$db_password # Store the password in the app's config
|
||||
}
|
||||
|
||||
# Remove a database if it exists, and the associated user
|
||||
|
|
Loading…
Add table
Reference in a new issue