Skip to content
Snippets Groups Projects
Commit b6c6c8a1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Reverse logic

parent 8956b126
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ function pleroma_setting_emoji {
function pleroma_setting_registration {
allow_registration="$1"
if [[ "$allow_registration" == '0' ]]; then
if [[ "$allow_registration" == '1' ]]; then
sed -i 's|registrations_open: false|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
sed -i 's|registrations_open: False|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
sed -i 's|"registrationOpen": false|"registrationOpen": true|g' $PLEROMA_DIR/priv/static/static/config.json
......@@ -146,7 +146,7 @@ function pleroma_setting_registration {
pleroma_recompile
fi
if [[ "$allow_registration" == '1' ]]; then
if [[ "$allow_registration" == '0' ]]; then
sed -i 's|registrations_open: true|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
sed -i 's|registrations_open: True|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
sed -i 's|"registrationOpen": true|"registrationOpen": false|g' $PLEROMA_DIR/priv/static/static/config.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment