Changing peertube signup state

This commit is contained in:
Bob Mottram 2018-02-11 11:54:06 +00:00
parent e17238eed8
commit 09759b7da5
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ function peertube_disable_signups {
--yesno $"\nDo you wish to disable further PeerTube signups?" 8 75
sel=$?
case $sel in
0) sed "0,/RE/s/enabled:.*/enabled: false/" $PEERTUBE_DIR/config/production.yaml;;
1) sed "0,/RE/s/enabled:.*/enabled: true/" $PEERTUBE_DIR/config/production.yaml;;
0) sed -i "0,/enabled:.*/s//enabled: false/" $PEERTUBE_DIR/config/production.yaml;;
1) sed -i "0,/enabled:.*/s//enabled: true/" $PEERTUBE_DIR/config/production.yaml;;
255) return;;
esac