Local restore for rss
This commit is contained in:
parent
23df08d0df
commit
281a2cc547
|
@ -210,6 +210,9 @@ function restore_database {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_domains {
|
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
|
if grep -q "GNU Social domain" $COMPLETION_FILE; then
|
||||||
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
|
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
@ -597,11 +600,11 @@ function restore_certs {
|
||||||
chown root:dovecot /etc/ssl/certs/dovecot.*
|
chown root:dovecot /etc/ssl/certs/dovecot.*
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/ssl/private/exim.key ]; then
|
if [ -f /etc/ssl/private/exim.key ]; then
|
||||||
cp /etc/ssl/private/exim.key /etc/exim4
|
cp /etc/ssl/private/exim.key /etc/exim4
|
||||||
cp /etc/ssl/certs/exim.crt /etc/exim4
|
cp /etc/ssl/certs/exim.crt /etc/exim4
|
||||||
cp /etc/ssl/certs/exim.dhparam /etc/exim4
|
cp /etc/ssl/certs/exim.dhparam /etc/exim4
|
||||||
chown root:Debian-exim /etc/exim4/exim.key /etc/exim4/exim.crt /etc/exim4/exim.dhparam
|
chown root:Debian-exim /etc/exim4/exim.key /etc/exim4/exim.crt /etc/exim4/exim.dhparam
|
||||||
chmod 640 /etc/exim4/exim.key /etc/exim4/exim.crt /etc/exim4/exim.dhparam
|
chmod 640 /etc/exim4/exim.key /etc/exim4/exim.crt /etc/exim4/exim.dhparam
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/ssl/private/mumble.key ]; then
|
if [ -f /etc/ssl/private/mumble.key ]; then
|
||||||
if [ -d /var/lib/mumble-server ]; then
|
if [ -d /var/lib/mumble-server ]; then
|
||||||
|
@ -696,6 +699,23 @@ function restore_gnu_social {
|
||||||
fi
|
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 {
|
function restore_hubzilla {
|
||||||
if [[ $RESTORE_APP != 'all' ]]; then
|
if [[ $RESTORE_APP != 'all' ]]; then
|
||||||
if [[ $RESTORE_APP != 'hubzilla' ]]; then
|
if [[ $RESTORE_APP != 'hubzilla' ]]; then
|
||||||
|
@ -1028,6 +1048,7 @@ restore_mailing_list
|
||||||
restore_xmpp
|
restore_xmpp
|
||||||
restore_gnu_social
|
restore_gnu_social
|
||||||
restore_hubzilla
|
restore_hubzilla
|
||||||
|
restore_rss_reader
|
||||||
restore_owncloud
|
restore_owncloud
|
||||||
restore_gogs
|
restore_gogs
|
||||||
restore_wiki
|
restore_wiki
|
||||||
|
|
Loading…
Reference in New Issue