aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-01 21:15:26 +0100
committeryalh76 <yalh@yahoo.com>2021-03-01 21:15:26 +0100
commitfcef659e0d6af040860828ffdbce5d488cbbd376 (patch)
tree7cfa047ff7cea00dfde46e12d3a39cb94f69358a /scripts/install
parente70f09a5d3794532f87678ba14a0e82906b36a81 (diff)
downloadmastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.tar.gz
mastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.tar.bz2
mastodon_ynh-fcef659e0d6af040860828ffdbce5d488cbbd376.zip
Fix missing variable during upgrade
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