From 15f8664900b71d886bf934ec9cb30a582a827630 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 3 Apr 2019 02:46:43 +0200 Subject: [PATCH] change $db_name creation --- scripts/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f7f9acb..b0e586b 100644 --- a/scripts/install +++ b/scripts/install @@ -89,8 +89,7 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st #================================================= ynh_print_info "Creating a PostgreSQL database..." -# Create postgresql database -db_name="peertube_${app}" +db_name=$(ynh_sanitize_dbid $app) db_pwd=$(ynh_string_random 30) ynh_app_setting_set "$app" psql_db "$db_name" ynh_app_setting_set "$app" psqlpwd "$db_pwd"