|
@@ -272,7 +272,6 @@ function mesh_install_syncthing {
|
272
|
272
|
echo '' >> $rootdir/etc/systemd/system/syncthing.service
|
273
|
273
|
echo '[Service]' >> $rootdir/etc/systemd/system/syncthing.service
|
274
|
274
|
echo 'User=root' >> $rootdir/etc/systemd/system/syncthing.service
|
275
|
|
- echo "Environment='all_proxy=socks5://localhost:9050'" >> $rootdir/etc/systemd/system/syncthing.service
|
276
|
275
|
echo 'ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0' >> $rootdir/etc/systemd/system/syncthing.service
|
277
|
276
|
echo 'Restart=on-failure' >> $rootdir/etc/systemd/system/syncthing.service
|
278
|
277
|
echo 'SuccessExitStatus=3 4' >> $rootdir/etc/systemd/system/syncthing.service
|
|
@@ -282,10 +281,6 @@ function mesh_install_syncthing {
|
282
|
281
|
echo 'WantedBy=multi-user.target' >> $rootdir/etc/systemd/system/syncthing.service
|
283
|
282
|
chroot "$rootdir" systemctl enable syncthing
|
284
|
283
|
|
285
|
|
- if ! grep -q "syncthing" $rootdir/etc/crontab; then
|
286
|
|
- echo "*/1 * * * * root /usr/local/bin/${PROJECT_NAME}-syncthing > /dev/null" >> $rootdir/etc/crontab
|
287
|
|
- fi
|
288
|
|
-
|
289
|
284
|
echo 'mesh_install_syncthing'
|
290
|
285
|
}
|
291
|
286
|
|