From 6f297f771ae5265178cdf89e6d7d3009812e09fa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Feb 2016 11:01:11 +0000 Subject: [PATCH] Initialise rss reader database --- src/freedombone | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/freedombone b/src/freedombone index 50cc7eaf..0d764e28 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8424,6 +8424,13 @@ function install_rss_reader { echo " define('CONFIG_VERSION', 26);" >> $RSS_READER_PATH/config.php fi + # initialize the database + if [ ! -f $RSS_READER_PATH/schema/ttrss_schema_mysql.sql ]; then + echo $'No database schema found for rss reader' + exit 52926 + fi + mysql -u root --password="$MARIADB_PASSWORD" -D ttrss < $RSS_READER_PATH/schema/ttrss_schema_mysql.sql + # ensure that socks5 proxy is used if ! grep -q "CURLOPT_PROXYTYPE" $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