Use getopts helpers in mysql

This commit is contained in:
Maniack Crudelis 2018-12-29 18:51:12 +01:00 committed by GitHub
parent d3a501aa41
commit 8c600e1e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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