mesh version of syncthing doesn't use tor

This commit is contained in:
Bob Mottram 2016-08-07 22:54:19 +01:00
parent 27e4b04ad7
commit ba7398ffbd
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 0 additions and 5 deletions

View File

@ -272,7 +272,6 @@ function mesh_install_syncthing {
echo '' >> $rootdir/etc/systemd/system/syncthing.service echo '' >> $rootdir/etc/systemd/system/syncthing.service
echo '[Service]' >> $rootdir/etc/systemd/system/syncthing.service echo '[Service]' >> $rootdir/etc/systemd/system/syncthing.service
echo 'User=root' >> $rootdir/etc/systemd/system/syncthing.service echo 'User=root' >> $rootdir/etc/systemd/system/syncthing.service
echo "Environment='all_proxy=socks5://localhost:9050'" >> $rootdir/etc/systemd/system/syncthing.service
echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0' >> $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 'Restart=on-failure' >> $rootdir/etc/systemd/system/syncthing.service
echo 'SuccessExitStatus=3 4' >> $rootdir/etc/systemd/system/syncthing.service echo 'SuccessExitStatus=3 4' >> $rootdir/etc/systemd/system/syncthing.service
@ -282,10 +281,6 @@ function mesh_install_syncthing {
echo 'WantedBy=multi-user.target' >> $rootdir/etc/systemd/system/syncthing.service echo 'WantedBy=multi-user.target' >> $rootdir/etc/systemd/system/syncthing.service
chroot "$rootdir" systemctl enable syncthing chroot "$rootdir" systemctl enable syncthing
if ! grep -q "syncthing" $rootdir/etc/crontab; then
echo "*/1 * * * * root /usr/local/bin/${PROJECT_NAME}-syncthing > /dev/null" >> $rootdir/etc/crontab
fi
echo 'mesh_install_syncthing' echo 'mesh_install_syncthing'
} }