aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-05-18 04:49:01 +0200
committerGitHub <noreply@github.com>2021-05-18 04:49:01 +0200
commit9a14733310eb0f9040bc52061e3e54632bac31bd (patch)
tree75670f22acbaf610c184226871d2af7678ee0f19 /scripts/install
parent9ffabe35eab65685bce066bb964f04bfef8ffb25 (diff)
parentb4d3655e7a00fc1e6472ed6b276b11ed9ff71bef (diff)
downloadmastodon_ynh-9a14733310eb0f9040bc52061e3e54632bac31bd.tar.gz
mastodon_ynh-9a14733310eb0f9040bc52061e3e54632bac31bd.tar.bz2
mastodon_ynh-9a14733310eb0f9040bc52061e3e54632bac31bd.zip
Merge pull request #276 from Tagadda/fix-redis-multiple-instance
[fix] Set REDIS_NAMESPACE for multiple instances
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install b/scripts/install
index 7e8e99d..d4056ef 100644
--- a/scripts/install
+++ b/scripts/install
@@ -162,6 +162,9 @@ config="$final_path/live/.env.production"
language="$(echo $language | head -c 2)"
+redis_namespace=${app}_production
+ynh_app_setting_set --app="$app" --key=redis_namespace --value="$redis_namespace"
+
secret_key_base=$(ynh_string_random --length=128)
ynh_app_setting_set --app="$app" --key=secret_key_base --value="$secret_key_base"