|
|
|
|
570
|
--yesno $"\\nDo you wish to disable new registrations?" 10 60
|
570
|
--yesno $"\\nDo you wish to disable new registrations?" 10 60
|
571
|
sel=$?
|
571
|
sel=$?
|
572
|
case $sel in
|
572
|
case $sel in
|
573
|
- 0) sed -i 's|registrations_open:.*|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
|
|
|
574
|
- sed -i 's|"registrationOpen":.*|"registrationOpen": false,|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
|
|
|
573
|
+ 0) sed -i 's|registrations_open: true|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
|
|
|
574
|
+ sed -i 's|registrations_open: True|registrations_open: false|g' $PLEROMA_DIR/config/config.exs
|
|
|
575
|
+ sed -i 's|"registrationOpen": true|"registrationOpen": false|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
|
576
|
+ sed -i 's|"registrationOpen": True|"registrationOpen": false|g' $PLEROMA_DIR/priv/static/static/config.json
|
575
|
;;
|
577
|
;;
|
576
|
- 1) sed -i 's|registrations_open:.*|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
|
|
|
577
|
- sed -i 's|"registrationOpen":.*|"registrationOpen": true,|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
|
|
|
578
|
+ 1) sed -i 's|registrations_open: false|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
|
|
|
579
|
+ sed -i 's|registrations_open: False|registrations_open: true|g' $PLEROMA_DIR/config/config.exs
|
|
|
580
|
+ sed -i 's|"registrationOpen": false|"registrationOpen": true|g' $PLEROMA_DIR/priv/static/static/config.json
|
|
|
581
|
+ sed -i 's|"registrationOpen": False|"registrationOpen": true|g' $PLEROMA_DIR/priv/static/static/config.json
|
578
|
;;
|
582
|
;;
|
579
|
255) return;;
|
583
|
255) return;;
|
580
|
esac
|
584
|
esac
|