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
26f33401
Commit
26f33401
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move remote gnusocial restore to app script
parent
7b9e3864
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-gnusocial
+19
-1
19 additions, 1 deletion
src/freedombone-app-gnusocial
src/freedombone-restore-remote
+0
-25
0 additions, 25 deletions
src/freedombone-restore-remote
with
19 additions
and
26 deletions
src/freedombone-app-gnusocial
+
19
−
1
View file @
26f33401
...
...
@@ -163,7 +163,25 @@ function backup_remote_gnusocial {
}
function
restore_remote_gnusocial
{
echo
-n
''
if
grep
-q
"GNU Social domain"
$COMPLETION_FILE
;
then
echo
$"Restoring GNU Social"
MICROBLOG_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"GNU Social domain"
|
awk
-F
':'
'{print $2}'
)
# stop the daemons
cd
/var/www/
${
MICROBLOG_DOMAIN_NAME
}
/htdocs
scripts/stopdaemons.sh
function_check restore_database_from_friend
restore_database_from_friend gnusocial
${
MICROBLOG_DOMAIN_NAME
}
if
[
-d
/root/tempgnusocial
]
;
then
rm
-rf
/root/tempgnusocial
fi
# start the daemons
cd
/var/www/
${
MICROBLOG_DOMAIN_NAME
}
/htdocs
scripts/startdaemons.sh
echo
$"Restore of GNU Social complete"
fi
}
function
remove_gnusocial
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-remote
+
0
−
25
View file @
26f33401
...
...
@@ -666,30 +666,6 @@ function restore_mailing_list {
fi
}
function
restore_gnusocial
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'gnusocial'
]]
;
then
return
fi
fi
if
grep
-q
"GNU Social domain"
$COMPLETION_FILE
;
then
MICROBLOG_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"GNU Social domain"
|
awk
-F
':'
'{print $2}'
)
# stop the daemons
cd
/var/www/
${
MICROBLOG_DOMAIN_NAME
}
/htdocs
scripts/stopdaemons.sh
restore_database_from_friend gnusocial
${
MICROBLOG_DOMAIN_NAME
}
if
[
-d
/root/tempgnusocial
]
;
then
rm
-rf
/root/tempgnusocial
fi
# start the daemons
cd
/var/www/
${
MICROBLOG_DOMAIN_NAME
}
/htdocs
scripts/startdaemons.sh
fi
}
function
restore_rss
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'ttrss'
]]
;
then
...
...
@@ -1098,7 +1074,6 @@ restore_personal_settings
restore_mailing_list
restore_email
restore_gnusocial
restore_hubzilla
restore_rss
restore_syncthing
...
...
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