소스 검색

Test for different string

Bob Mottram 8 년 전
부모
커밋
e67330354e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/freedombone-app-rss

+ 2
- 2
src/freedombone-app-rss 파일 보기

@@ -272,10 +272,10 @@ function rss_modifications {
272 272
     fi
273 273
 
274 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 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 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 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 280
     fi
281 281
     chown -R www-data:www-data $RSS_READER_PATH