Commit after rss modifications
This commit is contained in:
parent
61ef4a3c35
commit
c1ac920a87
|
@ -271,14 +271,23 @@ function rss_modifications {
|
|||
return
|
||||
fi
|
||||
|
||||
rss_modified=
|
||||
|
||||
# ensure that socks5 proxy is used
|
||||
if ! grep -q "CURLPROXY_SOCKS5" $RSS_READER_PATH/plugins/af_unburn/init.php; then
|
||||
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
|
||||
rss_modified=1
|
||||
fi
|
||||
if ! grep -q "CURLPROXY_SOCKS5" $RSS_READER_PATH/include/functions.php; then
|
||||
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
|
||||
rss_modified=1
|
||||
fi
|
||||
if [ $rss_modified ]; then
|
||||
cd $RSS_READER_PATH
|
||||
git commit -a -m"Modify for Tor proxying"
|
||||
fi
|
||||
chown -R www-data:www-data $RSS_READER_PATH
|
||||
|
||||
chmod a+x $RSS_READER_PATH
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue