Parcourir la source

Test for different string

Bob Mottram il y a 8 ans
Parent
révision
e67330354e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/freedombone-app-rss

+ 2
- 2
src/freedombone-app-rss Voir le fichier

272
     fi
272
     fi
273
 
273
 
274
     # ensure that socks5 proxy is used
274
     # ensure that socks5 proxy is used
275
-    if ! grep -q "CURLOPT_PROXYTYPE" $RSS_READER_PATH/plugins/af_unburn/init.php; then
275
+    if ! grep -q "CURLPROXY_SOCKS5" $RSS_READER_PATH/plugins/af_unburn/init.php; then
276
         sed -i '/curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);/a \\t\t\t\t\tcurl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);' $RSS_READER_PATH/plugins/af_unburn/init.php
276
         sed -i '/curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);/a \\t\t\t\t\tcurl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);' $RSS_READER_PATH/plugins/af_unburn/init.php
277
     fi
277
     fi
278
-    if ! grep -q "CURLOPT_PROXYTYPE" $RSS_READER_PATH/include/functions.php; then
278
+    if ! grep -q "CURLPROXY_SOCKS5" $RSS_READER_PATH/include/functions.php; then
279
         sed -i '/curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);/a \\t\t\t\tcurl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);' $RSS_READER_PATH/include/functions.php
279
         sed -i '/curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);/a \\t\t\t\tcurl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);' $RSS_READER_PATH/include/functions.php
280
     fi
280
     fi
281
     chown -R www-data:www-data $RSS_READER_PATH
281
     chown -R www-data:www-data $RSS_READER_PATH