mesh version of syncthing doesn't use tor
This commit is contained in:
parent
27e4b04ad7
commit
ba7398ffbd
|
@ -272,7 +272,6 @@ function mesh_install_syncthing {
|
|||
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 "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 'Restart=on-failure' >> $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
|
||||
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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue