|
@@ -40,6 +40,23 @@ RSS_READER_PATH=/etc/share/tt-rss
|
40
|
40
|
RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
|
41
|
41
|
RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
|
42
|
42
|
|
|
43
|
+function remove_rss_reader {
|
|
44
|
+ if ! grep -Fxq "install_rss_reader" $COMPLETION_FILE; then
|
|
45
|
+ return
|
|
46
|
+ fi
|
|
47
|
+ nginx_dissite $RSS_READER_DOMAIN_NAME
|
|
48
|
+ if [ -f /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME ]; then
|
|
49
|
+ rm /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME
|
|
50
|
+ fi
|
|
51
|
+ if [ -d $RSS_READER_PATH ]; then
|
|
52
|
+ rm -rf $RSS_READER_PATH
|
|
53
|
+ fi
|
|
54
|
+ function_check drop_database
|
|
55
|
+ drop_database ttrss
|
|
56
|
+ sed -i '/install_rss_reader/d' $COMPLETION_FILE
|
|
57
|
+ sed -i '/RSS /d' $COMPLETION_FILE
|
|
58
|
+}
|
|
59
|
+
|
43
|
60
|
function rss_reader_modifications {
|
44
|
61
|
# modify the rss reader to use a socks5 proxy rather than a http proxy
|
45
|
62
|
if [ ! -d $RSS_READER_PATH ]; then
|
|
@@ -261,7 +278,7 @@ function install_rss_reader {
|
261
|
278
|
RSS_READER_ADMIN_PASSWORD_HASH=$(echo -n "${RSS_READER_ADMIN_PASSWORD}" | sha1sum | awk -F ' ' '{print $1}')
|
262
|
279
|
|
263
|
280
|
function_check run_query
|
264
|
|
- run_query ttrss "update ttrss_users set pwd_hash = 'SHA1:${RSS_READER_ADMIN_PASSWORD_HASH}', salt= '' WHERE login = 'admin';"
|
|
281
|
+ run_query ttrss "update ttrss_users set pwd_hash = 'SHA1:${RSS_READER_ADMIN_PASSWORD_HASH}', salt= '' WHERE login = 'admin';"
|
265
|
282
|
|
266
|
283
|
function_check rss_reader_modifications
|
267
|
284
|
rss_reader_modifications
|