Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
e2ad22bd
Commit
e2ad22bd
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move rss local restore to app script
parent
2b9df463
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-rss
+23
-0
23 additions, 0 deletions
src/freedombone-app-rss
src/freedombone-restore-local
+0
-18
0 additions, 18 deletions
src/freedombone-restore-local
with
23 additions
and
18 deletions
src/freedombone-app-rss
+
23
−
0
View file @
e2ad22bd
...
@@ -97,10 +97,33 @@ function backup_local_rss {
...
@@ -97,10 +97,33 @@ function backup_local_rss {
fi
fi
}
}
function
restore_local_rss
{
if
!
grep
-q
"RSS reader domain"
$COMPLETION_FILE
;
then
return
fi
RSS_READER_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"RSS reader domain"
|
awk
-F
':'
'{print $2}'
)
if
[
$RSS_READER_DOMAIN_NAME
]
;
then
echo
$"Restoring ttrss"
temp_restore_dir
=
/root/tempttrss
restore_database ttrss
${
RSS_READER_DOMAIN_NAME
}
if
[
-d
$USB_MOUNT
/backup/ttrss
]
;
then
chown
-R
www-data:www-data /etc/share/tt-rss
if
[
-d
$temp_restore_dir
]
;
then
rm
-rf
$temp_restore_dir
fi
fi
echo
$"Restore of ttrss complete"
fi
}
function
backup_remote_rss
{
function
backup_remote_rss
{
echo
-n
''
echo
-n
''
}
}
function
restore_remote_rss
{
echo
-n
''
}
function
remove_rss
{
function
remove_rss
{
if
!
grep
-Fxq
"install_rss"
$COMPLETION_FILE
;
then
if
!
grep
-Fxq
"install_rss"
$COMPLETION_FILE
;
then
return
return
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-local
+
0
−
18
View file @
e2ad22bd
...
@@ -840,23 +840,6 @@ function restore_gnusocial {
...
@@ -840,23 +840,6 @@ function restore_gnusocial {
fi
fi
}
}
function
restore_rss
{
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/tt-rss
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
...
@@ -969,7 +952,6 @@ restore_ipfs
...
@@ -969,7 +952,6 @@ restore_ipfs
restore_xmpp
restore_xmpp
restore_gnusocial
restore_gnusocial
restore_hubzilla
restore_hubzilla
restore_rss
restore_email
restore_email
restore_apps
restore_apps
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment