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
6ee7845b
Commit
6ee7845b
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Onion rync integration
parent
a747da2c
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-app-rsync
+10
-1
10 additions, 1 deletion
src/freedombone-app-rsync
with
10 additions
and
1 deletion
src/freedombone-app-rsync
+
10
−
1
View file @
6ee7845b
...
...
@@ -44,7 +44,6 @@ NOT_ON_HOMEPAGE=1
RSYNC_DOMAIN_NAME
=
RSYNC_CODE
=
RSYNC_ONION_PORT
=
9951
RSYNC_PORT
=
873
# These parameters are used by the FreedomBox mobile app and web UI
...
...
@@ -134,6 +133,11 @@ function remove_rsync {
userdel
-r
rsync
rm
-rf
"
$RSYNC_DATA
"
if
grep
-q
"127.0.0.1:
$RSYNC_PORT
"
"/etc/torrc.d/
${
PROJECT_NAME
}
"
;
then
sed
-i
"/127.0.0.1:
$RSYNC_PORT
/d"
"/etc/torrc.d/
${
PROJECT_NAME
}
"
systemctl restart tor
fi
remove_app rsync
remove_completion_param install_rsync
sed
-i
'/rsync/d'
"
$COMPLETION_FILE
"
...
...
@@ -194,6 +198,11 @@ function install_rsync {
increment_app_install_progress
if
!
grep
-q
"127.0.0.1:
$RSYNC_PORT
"
"/etc/torrc.d/
${
PROJECT_NAME
}
"
;
then
sed
-i
"/127.0.0.1:5783/a HiddenServicePort
$RSYNC_PORT
127.0.0.1:
$RSYNC_PORT
"
"/etc/torrc.d/
${
PROJECT_NAME
}
"
systemctl restart tor
fi
systemctl
enable
rsync
systemctl start rsync
...
...
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