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
a72e62a5
Commit
a72e62a5
authored
9 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
trove user can handle onion addresses
parent
e1e9e5b4
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-trove
+14
-1
14 additions, 1 deletion
src/freedombone-trove
with
14 additions
and
1 deletion
src/freedombone-trove
+
14
−
1
View file @
a72e62a5
...
...
@@ -8,7 +8,7 @@
#
# Freedom in the Cloud
#
#
Host
git repos which the project depends on
#
Mirror
git repos which the project depends on
#
# License
# =======
...
...
@@ -119,6 +119,18 @@ function create_trove_user {
fi
}
function
enable_trove_via_onion
{
if
!
grep
-q
'Host *.onion'
/home/trove/.ssh/config
;
then
if
[
!
-d
/home/trove/.ssh
]
;
then
mkdir
/home/trove/.ssh
fi
echo
'Host *.onion'
>>
/home/trove/.ssh/config
echo
'ProxyCommand connect -R remote -5 -S 127.0.0.1:9050 %h %p'
>>
/home/trove/.ssh/config
chown
$MY_USER_NAME
:trove /home/trove/.ssh
chown
$MY_USER_NAME
:trove /home/trove/.ssh/config
fi
}
function
update_repos_from_friend
{
if
[
!
$FRIENDS_TROVE_SERVER
]
;
then
return
...
...
@@ -215,6 +227,7 @@ shift
done
create_trove_user
enable_trove_via_onion
update_repos_from_friend
sync_trove_repos
...
...
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