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
0c3d0f3c
Commit
0c3d0f3c
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying syncthing
parent
637f18d5
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-syncthing
+0
-34
0 additions, 34 deletions
src/freedombone-app-syncthing
with
0 additions
and
34 deletions
src/freedombone-app-syncthing
+
0
−
34
View file @
0c3d0f3c
...
...
@@ -489,41 +489,7 @@ function configure_firewall_for_syncthing {
echo
'configure_firewall_for_syncthing'
>>
$COMPLETION_FILE
}
function
mesh_install_syncthing
{
chroot
"
$rootdir
"
wget
-q
https://syncthing.net/release-key.txt
-O-
| apt-key add -
echo
"deb http://apt.syncthing.net/ syncthing release"
|
tee
$rootdir
/etc/apt/sources.list.d/syncthing.list
chroot
"
$rootdir
"
apt-get update
chroot
"
$rootdir
"
apt-get
-y
--force-yes
install
syncthing
# This probably does need to run as root so that it can access the Sync directories
# in each user's home directory
echo
'[Unit]'
>
$rootdir
/etc/systemd/system/syncthing.service
echo
'Description=Syncthing - Open Source Continuous File Synchronization'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'Documentation=man:syncthing(1)'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'After=network.target'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'Wants=syncthing-inotify@.service'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
''
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'[Service]'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'User=root'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'Restart=on-failure'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'SuccessExitStatus=3 4'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'RestartForceExitStatus=3 4'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
''
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'[Install]'
>>
$rootdir
/etc/systemd/system/syncthing.service
echo
'WantedBy=multi-user.target'
>>
$rootdir
/etc/systemd/system/syncthing.service
chroot
"
$rootdir
"
systemctl
enable
syncthing
echo
'mesh_install_syncthing'
}
function
install_syncthing
{
if
[
$INSTALLING_MESH
]
;
then
mesh_install_syncthing
return
fi
apt-get
-y
install
curl
curl
-s
https://syncthing.net/release-key.txt | apt-key add -
...
...
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