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
bccd2443
Commit
bccd2443
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Remove no longer needed domains
parent
f11a4f20
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-restore-local
+0
-32
0 additions, 32 deletions
src/freedombone-restore-local
with
0 additions
and
32 deletions
src/freedombone-restore-local
+
0
−
32
View file @
bccd2443
...
...
@@ -69,13 +69,6 @@ fi
# MariaDB password
DATABASE_PASSWORD
=
$(
cat
/root/dbpass
)
MICROBLOG_DOMAIN_NAME
=
HUBZILLA_DOMAIN_NAME
=
MEDIAGOBLIN_DOMAIN_NAME
=
GIT_DOMAIN_NAME
=
WIKI_DOMAIN_NAME
=
FULLBLOG_DOMAIN_NAME
=
function
check_backup_exists
{
if
[
!
-d
$USB_MOUNT
/backup
]
;
then
echo
$"No backup directory found on the USB drive."
...
...
@@ -184,30 +177,6 @@ function restore_database {
fi
}
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
if
grep
-q
"Hubzilla domain"
$COMPLETION_FILE
;
then
HUBZILLA_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Hubzilla domain"
|
awk
-F
':'
'{print $2}'
)
fi
if
grep
-q
"Mediagoblin domain"
$COMPLETION_FILE
;
then
MEDIAGOBLIN_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Mediagoblin domain"
|
awk
-F
':'
'{print $2}'
)
fi
if
grep
-q
"Gogs domain"
$COMPLETION_FILE
;
then
GIT_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Gogs domain"
|
awk
-F
':'
'{print $2}'
)
fi
if
[
-d
$USB_MOUNT
/backup/wiki
]
;
then
WIKI_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Wiki domain"
|
awk
-F
':'
'{print $2}'
)
fi
if
[
-d
$USB_MOUNT
/backup/blog
]
;
then
FULLBLOG_DOMAIN_NAME
=
$(
cat
$COMPLETION_FILE
|
grep
"Blog domain"
|
awk
-F
':'
'{print $2}'
)
fi
}
function
restore_configuration
{
if
[[
$RESTORE_APP
!=
'all'
]]
;
then
if
[[
$RESTORE_APP
!=
'configuration'
]]
;
then
...
...
@@ -827,7 +796,6 @@ check_admin_user
copy_gpg_keys
restore_configuration
same_admin_user
update_domains
restore_mariadb
restore_letsencrypt
restore_tor
...
...
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