浏览代码

Changing peertube signup state

Bob Mottram 7 年前
父节点
当前提交
09759b7da5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-app-peertube

+ 2
- 2
src/freedombone-app-peertube 查看文件

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