Local restore for rss
This commit is contained in:
parent
23df08d0df
commit
281a2cc547
|
@ -210,6 +210,9 @@ function restore_database {
|
|||
}
|
||||
|
||||
function update_domains {
|
||||
if grep -q "RSS reader domain" $COMPLETION_FILE; then
|
||||
RSS_READER_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "RSS reader domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
if grep -q "GNU Social domain" $COMPLETION_FILE; then
|
||||
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
|
||||
fi
|
||||
|
@ -696,6 +699,23 @@ function restore_gnu_social {
|
|||
fi
|
||||
}
|
||||
|
||||
function restore_rss_reader {
|
||||
if [[ $RESTORE_APP != 'all' ]]; then
|
||||
if [[ $RESTORE_APP != 'ttrss' ]]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
if [ $RSS_READER_DOMAIN_NAME ]; then
|
||||
restore_database ttrss ${RSS_READER_DOMAIN_NAME}
|
||||
if [ -d $USB_MOUNT/backup/ttrss ]; then
|
||||
chown -R www-data:www-data /etc/share/ttrss
|
||||
if [ -d /root/tempttrss ]; then
|
||||
rm -rf /root/tempttrss
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function restore_hubzilla {
|
||||
if [[ $RESTORE_APP != 'all' ]]; then
|
||||
if [[ $RESTORE_APP != 'hubzilla' ]]; then
|
||||
|
@ -1028,6 +1048,7 @@ restore_mailing_list
|
|||
restore_xmpp
|
||||
restore_gnu_social
|
||||
restore_hubzilla
|
||||
restore_rss_reader
|
||||
restore_owncloud
|
||||
restore_gogs
|
||||
restore_wiki
|
||||
|
|
Loading…
Reference in New Issue