Selaa lähdekoodia

Ensure that jicofo daemon remains torified

Bob Mottram 8 vuotta sitten
vanhempi
commit
dd447fca7b
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6
    1
      src/freedombone-app-jitsi

+ 6
- 1
src/freedombone-app-jitsi Näytä tiedosto

@@ -164,7 +164,12 @@ function reconfigure_jitsi {
164 164
 }
165 165
 
166 166
 function upgrade_jitsi {
167
-    echo -n ''
167
+    if [ -f /etc/init.d/jicofo ]; then
168
+        systemctl stop jicofo
169
+        sed -i 's|exec $DAEMON|exec /usr/bin/torify $DAEMON|g' /etc/init.d/jicofo
170
+        systemctl daemon-reload
171
+        systemctl start jicofo
172
+    fi
168 173
 }
169 174
 
170 175
 function backup_local_jitsi {