Set pleroma registrations open initially

This commit is contained in:
Bob Mottram 2018-03-05 12:24:31 +00:00
parent f32df0b102
commit 5f8d2d9161
1 changed files with 5 additions and 0 deletions

View File

@ -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