aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index dd00359..7d21d45 100644
--- a/scripts/install
+++ b/scripts/install
@@ -85,8 +85,8 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
ynh_script_progression --message="Creating a PostgreSQL database..."
# Create PostgreSQL database
-db_name="${app}_production"
-db_user=$app
+db_name=$(ynh_sanitize_dbid --db_name="${app}_production")
+db_user=$(ynh_sanitize_dbid --db_name=$app)
db_pwd=$(ynh_string_random --length=30)
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
ynh_app_setting_set --app=$app --key=db_pwd --value=$db_pwd