Bläddra i källkod

Changing peertube signup state

Bob Mottram 7 år sedan
förälder
incheckning
09759b7da5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/freedombone-app-peertube

+ 2
- 2
src/freedombone-app-peertube Visa fil

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