From 5f8d2d9161d02c0fc93e67ffa093927f0e8e2dbf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Mar 2018 12:24:31 +0000 Subject: [PATCH] Set pleroma registrations open initially --- src/freedombone-app-pleroma | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index abe08b3c..aad01bab 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -1173,6 +1173,11 @@ function install_pleroma { echo '[Install]'; echo 'WantedBy=multi-user.target'; echo 'Alias=pleroma.service'; } > /etc/systemd/system/pleroma.service + + # set registrations open initially + sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs + sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json + systemctl daemon-reload systemctl enable pleroma systemctl start pleroma