|
@@ -8424,6 +8424,13 @@ function install_rss_reader {
|
8424
|
8424
|
echo " define('CONFIG_VERSION', 26);" >> $RSS_READER_PATH/config.php
|
8425
|
8425
|
fi
|
8426
|
8426
|
|
|
8427
|
+ # initialize the database
|
|
8428
|
+ if [ ! -f $RSS_READER_PATH/schema/ttrss_schema_mysql.sql ]; then
|
|
8429
|
+ echo $'No database schema found for rss reader'
|
|
8430
|
+ exit 52926
|
|
8431
|
+ fi
|
|
8432
|
+ mysql -u root --password="$MARIADB_PASSWORD" -D ttrss < $RSS_READER_PATH/schema/ttrss_schema_mysql.sql
|
|
8433
|
+
|
8427
|
8434
|
# ensure that socks5 proxy is used
|
8428
|
8435
|
if ! grep -q "CURLOPT_PROXYTYPE" $RSS_READER_PATH/plugins/af_unburn/init.php; then
|
8429
|
8436
|
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
|