function to remove rss reader

This commit is contained in:
Bob Mottram 2016-07-03 22:54:58 +01:00
parent 0b6e57e219
commit e69717af61
1 changed files with 18 additions and 1 deletions

View File

@ -40,6 +40,23 @@ RSS_READER_PATH=/etc/share/tt-rss
RSS_READER_GNUSOCIAL_REPO="https://github.com/bashrc/ttrss-gnusocial"
RSS_READER_GNUSOCIAL_COMMIT='8b92b8f5db7b0d12459c7bd86a50f48815efe642'
function remove_rss_reader {
if ! grep -Fxq "install_rss_reader" $COMPLETION_FILE; then
return
fi
nginx_dissite $RSS_READER_DOMAIN_NAME
if [ -f /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME ]; then
rm /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME
fi
if [ -d $RSS_READER_PATH ]; then
rm -rf $RSS_READER_PATH
fi
function_check drop_database
drop_database ttrss
sed -i '/install_rss_reader/d' $COMPLETION_FILE
sed -i '/RSS /d' $COMPLETION_FILE
}
function rss_reader_modifications {
# modify the rss reader to use a socks5 proxy rather than a http proxy
if [ ! -d $RSS_READER_PATH ]; then