diff --git a/scripts/install b/scripts/install index 8915cb6..9086088 100755 --- a/scripts/install +++ b/scripts/install @@ -64,7 +64,7 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= ynh_print_info "Creating a MySQL database..." -db_name=$(ynh_sanitize_dbid $app) +db_name=$(ynh_sanitize_dbid --db_name=$app) ynh_app_setting_set $app db_name $db_name ynh_mysql_setup_db $db_name $db_name diff --git a/scripts/remove b/scripts/remove index 2e7b5a1..546464e 100755 --- a/scripts/remove +++ b/scripts/remove @@ -33,7 +33,7 @@ ynh_mysql_remove_db $db_user $db_name #================================================= # REMOVE DEPENDENCIES #================================================= -ynh_print_info "Removing dependencies" +ynh_print_info "Removing dependencies..." # Remove metapackage and its dependencies ynh_remove_app_dependencies @@ -41,7 +41,7 @@ ynh_remove_app_dependencies #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_print_info "Removing app main directory" +ynh_print_info "Removing app main directory..." # Remove the app directory securely ynh_secure_remove "$final_path" @@ -49,7 +49,7 @@ ynh_secure_remove "$final_path" #================================================= # REMOVE NGINX CONFIGURATION #================================================= -ynh_print_info "Removing nginx web server configuration" +ynh_print_info "Removing nginx web server configuration..." # Remove the dedicated nginx config ynh_remove_nginx_config @@ -67,7 +67,7 @@ ynh_remove_fpm_config #================================================= # REMOVE DEDICATED USER #================================================= -ynh_print_info "Removing the dedicated system user" +ynh_print_info "Removing the dedicated system user..." # Delete a system user ynh_system_user_delete $app diff --git a/scripts/upgrade b/scripts/upgrade index a4b820c..07a94e8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,7 @@ fi # If db_name doesn't exist, create it if [ -z $db_name ]; then - db_name=$(ynh_sanitize_dbid $app) + db_name=$(ynh_sanitize_dbid --db_name=$app) ynh_app_setting_set $app db_name $db_name fi