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
7a0c054d
Commit
7a0c054d
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Move tox local restore to app script
parent
96e8e5c7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-tox
+30
-1
30 additions, 1 deletion
src/freedombone-app-tox
src/freedombone-restore-local
+1072
-1070
1072 additions, 1070 deletions
src/freedombone-restore-local
with
1102 additions
and
1071 deletions
src/freedombone-app-tox
+
30
−
1
View file @
7a0c054d
...
...
@@ -75,8 +75,37 @@ function backup_local_tox {
fi
}
function
restore_local_tox
{
if
[
-d
$USB_MOUNT
/backup/tox
]
;
then
echo
$"Restoring Tox node settings"
function_check restore_directory_from_usb
restore_directory_from_usb / tox
if
[
!
"
$?
"
=
"0"
]
;
then
function_check set_user_permissions
set_user_permissions
function_check backup_unmount_drive
backup_unmount_drive
exit
6393
fi
cp
/var/lib/tox-bootstrapd/tox-bootstrapd.conf /etc/tox-bootstrapd.conf
systemctl restart tox-bootstrapd.service
if
[
!
"
$?
"
=
"0"
]
;
then
systemctl status tox-bootstrapd.service
function_check set_user_permissions
set_user_permissions
function_check backup_unmount_drive
backup_unmount_drive
exit
59369
fi
fi
}
function
backup_remote_tox
{
echo
''
echo
-n
''
}
function
restore_remote_tox
{
echo
-n
''
}
function
remove_tox_node
{
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-restore-local
+
1072
−
1070
View file @
7a0c054d
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