|
@@ -363,8 +363,12 @@ function pleroma_disable_registrations {
|
363
|
363
|
--yesno $"\nDo you wish to disable new registrations?" 10 60
|
364
|
364
|
sel=$?
|
365
|
365
|
case $sel in
|
366
|
|
- 0) sed -i 's|registrations_open:.*|registrations_open: false|g' $PLEROMA_DIR/config/config.exs;;
|
367
|
|
- 1) sed -i 's|registrations_open:.*|registrations_open: true|g' $PLEROMA_DIR/config/config.exs;;
|
|
366
|
+ 0) sed -i 's|registrations_open:.*|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
|
|
367
|
+ sed -i 's|"registrationOpen":.*|"registrationOpen": false|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
368
|
+ ;;
|
|
369
|
+ 1) sed -i 's|registrations_open:.*|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
|
|
370
|
+ sed -i 's|"registrationOpen":.*|"registrationOpen": true|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
371
|
+ ;;
|
368
|
372
|
255) return;;
|
369
|
373
|
esac
|
370
|
374
|
pleroma_recompile
|