|
@@ -545,11 +545,11 @@ function pleroma_disable_registrations {
|
545
|
545
|
--yesno $"\nDo you wish to disable new registrations?" 10 60
|
546
|
546
|
sel=$?
|
547
|
547
|
case $sel in
|
548
|
|
- 0) sed -i 's|registrations_open:.*|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
|
549
|
|
- sed -i 's|"registrationOpen":.*|"registrationOpen": false|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
548
|
+ 0) sed -i 's|registrations_open:.*|registrations_open: false,|g' $PLEROMA_DIR/config/config.exs
|
|
549
|
+ sed -i 's|"registrationOpen":.*|"registrationOpen": false,|g' $PLEROMA_DIR/priv/static/static/config.json
|
550
|
550
|
;;
|
551
|
|
- 1) sed -i 's|registrations_open:.*|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
|
552
|
|
- sed -i 's|"registrationOpen":.*|"registrationOpen": true|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
551
|
+ 1) sed -i 's|registrations_open:.*|registrations_open: true,|g' $PLEROMA_DIR/config/config.exs
|
|
552
|
+ sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json
|
553
|
553
|
;;
|
554
|
554
|
255) return;;
|
555
|
555
|
esac
|