aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-05-19 01:31:51 +0200
committeryalh76 <yalh@yahoo.com>2020-05-19 01:31:51 +0200
commitff8fbd3fd06a0a87272e751bf3011d730dbfffc0 (patch)
tree1ef77d269c5b28ed3323047bd07a8cd98edd4ca8 /scripts
parentb5556ae674f1ca35da8f5e1d5a8a8ce4e69bc580 (diff)
downloadmastodon_ynh-ff8fbd3fd06a0a87272e751bf3011d730dbfffc0.tar.gz
mastodon_ynh-ff8fbd3fd06a0a87272e751bf3011d730dbfffc0.tar.bz2
mastodon_ynh-ff8fbd3fd06a0a87272e751bf3011d730dbfffc0.zip
disable registrations and invitations
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install b/scripts/install
index ab3aaa9..c5e5775 100644
--- a/scripts/install
+++ b/scripts/install
@@ -188,6 +188,9 @@ otp_secret=$(head -n128 /dev/urandom | tail -n +1 | tr -dc -d 'a-z0-9' | head -c
ynh_replace_string --match_string="__OTP_SECRET__" --replace_string="$otp_secret" --target_file="$config"
ynh_app_setting_set --app="$app" --key=otp_secret --value="$otp_secret"
+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"
+
#=================================================
# INSTALLING MASTODON
#=================================================