aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-12 22:53:03 +0200
committernemsia <nemsia@nemsia.org>2018-06-12 22:53:03 +0200
commitae04282b9e5bb3a2dff513b1c37c0ff54fd95db4 (patch)
tree11d63d1cc387ea9ad3552bffb70fe50df16f9794 /scripts/install
parentf102d956921286ba066473a325b18b1416af030a (diff)
downloadmastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.tar.gz
mastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.tar.bz2
mastodon_ynh-ae04282b9e5bb3a2dff513b1c37c0ff54fd95db4.zip
Change db_name on all scripts
to mastodon_production
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install
index 9e8a873..90a8dfc 100644
--- a/scripts/install
+++ b/scripts/install
@@ -124,8 +124,10 @@ ynh_install_app_dependencies \
ynh_psql_test_if_first_run
db_user=$(ynh_sanitize_dbid "$app")
-db_name=$(ynh_sanitize_dbid "$app")
+db_name="${app}_production"
+db_name=$(ynh_sanitize_dbid "$db_name")
db_pwd=$(ynh_string_random)
+ynh_app_setting_set $app db_name $db_name
ynh_app_setting_set $app db_pwd $db_pwd
ynh_psql_setup_db "$db_user" "$db_name" "$db_pwd"