From 384ebfa72c31d44b72063ef449297589a126bfc9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Mar 2021 00:37:33 +0100 Subject: [PATCH] fix missing __VAPID_PRIVATE_KEY__ --- scripts/install | 4 ++-- 1 file 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"