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
908919e1
Commit
908919e1
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move remote hubzilla restore to app script
parent
26f33401
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-hubzilla
+17
-1
17 additions, 1 deletion
src/freedombone-app-hubzilla
src/freedombone-restore-remote
+0
-23
0 additions, 23 deletions
src/freedombone-restore-remote
with
17 additions
and
24 deletions
src/freedombone-app-hubzilla
+
17
−
1
View file @
908919e1
...
...
@@ -122,7 +122,23 @@ function backup_remote_hubzilla {
}
function
restore_remote_hubzilla
{
echo
-n
''
if
grep
-q
"Hubzilla domain"
$COMPLETION_FILE
;
then
echo
$"Restoring Hubzilla"
HUBZILLA_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Hubzilla domain"
|
awk
-F
':'
'{print $2}'
)
function_check restore_database_from_friend
restore_database_from_friend hubzilla
${
HUBZILLA_DOMAIN_NAME
}
if
[
-d
$SERVER_DIRECTORY
/backup/hubzilla
]
;
then
if
[
!
-d
/var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
]
;
then
mkdir
-p
/var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
fi
chmod
777 /var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
chown
-R
www-data:www-data /var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/
*
fi
if
[
-d
/root/temphubzilla
]
;
then
rm
-rf
/root/temphubzilla
fi
echo
$"Restore of Hubzilla complete"
fi
}
function
remove_hubzilla
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-remote
+
0
−
23
View file @
908919e1
...
...
@@ -684,28 +684,6 @@ function restore_rss {
fi
}
function
restore_hubzilla
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'hubzilla'
]]
;
then
return
fi
fi
if
grep
-q
"Hubzilla domain"
$COMPLETION_FILE
;
then
HUBZILLA_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Hubzilla domain"
|
awk
-F
':'
'{print $2}'
)
restore_database_from_friend hubzilla
${
HUBZILLA_DOMAIN_NAME
}
if
[
-d
$SERVER_DIRECTORY
/backup/hubzilla
]
;
then
if
[
!
-d
/var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
]
;
then
mkdir
-p
/var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
fi
chmod
777 /var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/store/[data]/smarty3
chown
-R
www-data:www-data /var/www/
${
HUBZILLA_DOMAIN_NAME
}
/htdocs/
*
fi
if
[
-d
/root/temphubzilla
]
;
then
rm
-rf
/root/temphubzilla
fi
fi
}
function
restore_syncthing
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'syncthing'
]]
;
then
...
...
@@ -1074,7 +1052,6 @@ restore_personal_settings
restore_mailing_list
restore_email
restore_hubzilla
restore_rss
restore_syncthing
restore_mediagoblin
...
...
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