aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-03-01 00:37:33 +0100
committeryalh76 <yalh@yahoo.com>2021-03-01 00:37:33 +0100
commit384ebfa72c31d44b72063ef449297589a126bfc9 (patch)
treed98cfd398fa2595cb8e42da01b8f4c4cb4e54325
parentf6eb84a96e20920caf6393636eeb1757d0666fbe (diff)
downloadmastodon_ynh-384ebfa72c31d44b72063ef449297589a126bfc9.tar.gz
mastodon_ynh-384ebfa72c31d44b72063ef449297589a126bfc9.tar.bz2
mastodon_ynh-384ebfa72c31d44b72063ef449297589a126bfc9.zip
fix missing __VAPID_PRIVATE_KEY__
-rw-r--r--scripts/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index 7d72758..dc8b1ff 100644
--- a/scripts/install
+++ b/scripts/install
@@ -163,11 +163,11 @@ ynh_app_setting_set --app="$app" --key=secret_key_base --value="$secret_key_base
otp_secret=$(ynh_string_random --length=128)
ynh_app_setting_set --app="$app" --key=otp_secret --value="$otp_secret"
-ynh_add_config --template="../conf/.env.production.sample" --destination="$config"
-
vapid_private_key=""
vapid_public_key=""
+ynh_add_config --template="../conf/.env.production.sample" --destination="$config"
+
ynh_replace_string --match_string="registrations_mode: 'open'" --replace_string="registrations_mode: 'none'" --target_file="$final_path/live/config/settings.yml"
ynh_replace_string --match_string="min_invite_role: 'admin'" --replace_string="min_invite_role: 'none'" --target_file="$final_path/live/config/settings.yml"